Commit ede4dccd by zhangxw

联调 样式修改

1 parent 8c31e064
Showing 27 changed files with 80 additions and 52 deletions
......@@ -42,12 +42,13 @@ Component({
}
},
phoneShow: Boolean, // 是否显示手机号输入项
isAdditionRecordOrder: Boolean, // 是否是补录
customerPhone: {
type: Number,
observer: function (n, o) {
const phoneRex = /^[1]([3-9])[0-9]{9}$/
if (phoneRex.test(n)) {
let { merchantId, phoneShow } = this.data
let { merchantId, phoneShow, isAdditionRecordOrder } = this.data
let thisPage = wx.$router.getPageInstance()
let {
orderObj
......@@ -56,7 +57,7 @@ Component({
phone: n,
merchantId: merchantId
}
if (!orderObj.orderCode && phoneShow) { // 新下单 且可以手动输入手机号
if (!orderObj.orderCode && phoneShow && !isAdditionRecordOrder) { // 新下单 且可以手动输入手机号
orderAPI.getQueryCouponInfoByPhone(params).then(res => {
let { code, data, message } = res
if (code == 0) {
......
<!-- components/orderSwitchPopup/orderSwitchPopup.wxml -->
<view wx:if="{{flag}}" class='container' style=''>
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view wx:if="{{flag}}" class='container'>
<!-- bindtap='_close' 取消遮光层关闭事件 -->
<view class='wrap {{wrapAnimate}}' style='background:rgba(0,0,0,{{bgOpacity}});' />
<view class='popup-container {{popupAnimate}}'>
......
......@@ -95,7 +95,7 @@ Page({
// console.log(item.constructionFlag)
// return
// console.log(item)
if (name == 'createOrder') {
if (name == 'createOrder' || name == 'premiumUpgrade') {
if (userInfo.merchantType && !userInfo.isSuper) {
// 是微信支付直接跳转确认页面
if (userType == 2 && item?.selectPayType == 1) {
......
......@@ -102,6 +102,14 @@ page ::-webkit-scrollbar {
font-size: 28rpx;
font-family: PingFangSC-Regular;
color: #292D33;
display: flex;
align-items: center;
justify-content: space-between;
}
.conTitle_tips {
color: #5A5E66;
font-size: 22rpx;
}
.content {
......
......@@ -78,7 +78,7 @@
</view>
</view>
<block wx:if="{{ !isNoStaff }}">
<view class="conTitle utils isNoStaff">展业工具</view>
<view class="conTitle utils isNoStaff">展业工具<text class="conTitle_tips">太阳膜产品请使用车膜下单及战败下单</text></view>
<div class="menu">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
......
......@@ -71,7 +71,8 @@ Page({
showTips: true,
isShowSubShopMerchant: false,
positionTypeList: [],
filmOrder: 0 // 补录类型
filmOrder: 0, // 补录类型
currentWordNumber: 0 // 备注字数
},
showCustomPop() {
this.setData({
......@@ -91,6 +92,12 @@ Page({
routerBack() {
wx.$router.back()
},
remarkInput(e) {
this.setData({
currentWordNumber: e.detail.cursor,
'orderObj.remark': e.detail.value
})
},
reWrite(type, data) {
// console.log(type)
let { orderObj } = this.data
......
/* tabWorkOrder/pages/additionRecordOrder/additionRecordOrder.wxss */
\ No newline at end of file
......@@ -463,6 +463,15 @@
</block>
</block>
</view>
<view class="box">
<view class="remark_box">
<view class="label">订单备注</view>
<view class="textArea_box">
<textarea value="{{orderObj.remark}}" placeholder="请输入" class="textarea" bindinput="remarkInput" />
<view class="currentWordNumber">{{currentWordNumber || 0}} / 100</view>
</view>
</view>
</view>
</view>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips" wx:if="{{showTips}}">
......@@ -521,7 +530,8 @@
customerPhone="{{orderObj.customer.customerPhone}}"
yqMerchantId="{{orderObj.sellerMerchantId}}"
returnFun="{{returnFun}}"
phoneShow="{{ !phoneShow }}" />
phoneShow="{{ !phoneShow }}"
isAdditionRecordOrder />
<goods
show="{{goodsBox}}"
minPrice="{{totalFee}}"
......
......@@ -76,7 +76,7 @@ page {
}
.placeholder-class {
color: #C3C3C3;
color: #BEC1C7;
}
.between {
......
/* tabWorkOrder/pages/confirmOrder/confirmOrder.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxss */
\ No newline at end of file
......@@ -128,8 +128,8 @@
<view class="box customer">
<view class="title userTitle">
<view>客户信息</view>
<view bindtap="jumpUserPortrait" class="updateInfo icon"><image src="../../images/userImageIcon.png" class="iconImage" ></image>画像</view>
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo "><image src="../../images/editIcon.png" class="iconImage" ></image>客户信息</view>
<view bindtap="jumpUserPortrait" class="updateInfo icon"><image src="{{IMG_URL}}miniProgram/custom_portrait_icon.png" class="iconImage" ></image>画像</view>
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo "><image src="{{IMG_URL}}miniProgram/edit_icon.png" class="iconImage" ></image>客户信息</view>
</view>
<block wx:for="{{customerObj}}" wx:key="index">
<view class="cell">
......
......@@ -80,9 +80,10 @@ page {
.box .title {
font-size: 32rpx;
color: #333333;
color: #292D33;
margin-bottom: 20rpx;
position: relative;
font-weight: 600;
}
.box .operate {
......@@ -312,8 +313,8 @@ page {
font-family: 'numberBold';
}
.copyImage, .iconImage {
width: 36rpx;
height: 36rpx;
width: 32rpx;
height: 32rpx;
/* vertical-align: bottom; */
vertical-align: middle;
}
......@@ -603,6 +604,7 @@ margin-right: auto;
font-size: 28rpx;
margin-left: 16rpx;
margin-top: 3rpx;
font-weight: normal;
}
......
/* tabWorkOrder/pages/createArchives/createArchives.wxss */
\ No newline at end of file
......@@ -51,7 +51,7 @@ scroll-view ::-webkit-scrollbar {
}
.placeholder-class {
color: #C3C3C3;
color: #BEC1C7;
}
.between {
......
......@@ -64,13 +64,13 @@
/> -->
</view>
<view class="box">
<gl-cell border label="客户类型" valueAlign="right" labelWidth="140rpx">
<!-- <gl-cell border label="客户类型" valueAlign="right" labelWidth="140rpx">
<view class="gender-box">
<view class="block text-center {{ orderObj.selectPayType !=0?'':'right' }}" />
<view class="male text-center {{ orderObj.selectPayType !=0 ?'active':'' }}" bindtap="changeSelectPayType" data-experience="2">升级</view>
<view class="woman text-center {{ orderObj.selectPayType ==0?'active':'' }}" bindtap="changeSelectPayType" data-experience="0">战败</view>
</view>
</gl-cell>
</gl-cell> -->
<!-- <view class="subShopMerchantId" wx:if="{{ isShowSubShopMerchant }}">
<gl-cell
......
......@@ -71,7 +71,7 @@ page {
}
.placeholder-class {
color: #C3C3C3;
color: #BEC1C7;
}
.between {
......
......@@ -158,7 +158,7 @@
data-name="customerPhone"
always-embed></input>
</gl-cell>
<gl-cell
<!-- <gl-cell
border
required="{{isStandNo}}"
valueAlign="right"
......@@ -179,7 +179,7 @@
data-name="standNo"
maxlength="17"
always-embed></input>
</gl-cell>
</gl-cell> -->
<view class="goods_box">
<view class="label">请选择产品<text class='required'>*</text></view>
<gl-cell
......
......@@ -37,7 +37,7 @@ scroll-view ::-webkit-scrollbar {
}
.placeholder-class {
color: #C3C3C3;
color: #BEC1C7;
}
.between {
......
......@@ -60,7 +60,7 @@
</view>
<view class="line" />
<view class="cell total">
<view class="label">总价:</view>
<view class="label">商品总金额:</view>
<view class="price">¥{{orderInfo.total_price}}</view>
</view>
<!-- </block> -->
......@@ -111,8 +111,8 @@
<view class="box customer">
<view class="title userTitle">
<text>客户信息</text>
<view bindtap="jumpUserPortrait" class="updateInfo icon"><image src="../../images/userImageIcon.png" class="iconImage" ></image>画像</view>
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo "><image src="../../images/editIcon.png" class="iconImage" ></image>客户信息</view>
<view bindtap="jumpUserPortrait" class="updateInfo icon"><image src="{{IMG_URL}}miniProgram/custom_portrait_icon.png" class="iconImage" ></image>画像</view>
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo "><image src="{{IMG_URL}}miniProgram/edit_icon.png" class="iconImage" ></image>客户信息</view>
</view>
<block wx:for="{{customerObj}}" wx:key="index">
<view class="cell">
......
......@@ -3,8 +3,8 @@ page {
background-color: rgb(246, 247, 247);
}
.copyImage, .iconImage {
width: 36rpx;
height: 36rpx;
width: 32rpx;
height: 32rpx;
vertical-align: bottom;
}
.iconImage{
......@@ -49,9 +49,10 @@ page {
.box .title {
font-size: 32rpx;
color: #333333;
color: #292D33;
margin-bottom: 20rpx;
position: relative;
font-weight: 600;
}
.box .title::after {
......@@ -538,6 +539,7 @@ page {
color: #347BFF;
font-size: 28rpx;
margin-left: 16rpx;
font-weight: normal;
}
......
......@@ -5,12 +5,14 @@ import {
import api from '../../api.js'
import order_mixins from '../order_mixins.js'
import { getPositionList } from '~/store/index'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/'
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
IMG_URL,
...order_mixins.data,
showTips: true,
isYqdSuper: app.globalData.isYqdSuper,
......@@ -600,7 +602,7 @@ Page({
onRoute(options) {
// console.log(options)
// 调试用
// options.orderCode = '231008175435623'
// options.orderCode = '231020165619225'
// options.orderCode = '230427135616113'
if (options.orderCode) {
this.setData({
......
......@@ -66,7 +66,7 @@
webp
mode="widthFix"
class="icon"
src="/images/fullScreen.png" />
src="{{IMG_URL}}full_screen_icon.png" />
<!-- <cover-view class="full_text">全屏</cover-view> -->
</cover-view>
<cover-view bind:tap="clearCanvas" class="delete_icon flex_scb">
......@@ -74,7 +74,7 @@
webp
mode="widthFix "
class="icon deleteIcon"
src="/images/sign_del.png" />
src="{{IMG_URL}}delete_icon.png" />
</cover-view>
</view>
<view wx:else class="canvas_wrap">
......@@ -98,7 +98,7 @@
</view>
<view class="tire-block" bindtap="handleUpload" wx:if="{{constructionImgList.length==0||constructionImgList.length<9}}">
<view>
<image class="icon-plus" src="/tabWorkOrder/images/icon-plus.png" />
<image class="icon-plus" src="{{IMG_URL}}camera_icon.png" />
</view>
</view>
</view>
......@@ -108,7 +108,7 @@
<view class='star-box'>
<block wx:for="{{5}}" wx:key="index">
<view class="star" bindtap="setStar" data-index="{{index}}">
<image src="{{index < rating?'/tabWorkOrder/images/star-active.png':'/tabWorkOrder/images/star.png'}}" />
<image src="{{IMG_URL}}{{index < rating?'score_icon.png':'star_icon.png'}}" />
</view>
</block>
</view>
......
......@@ -34,9 +34,10 @@ page {
.box .title {
font-size: 32rpx;
color: #333333;
margin-bottom: 20rpx;
color: #292D33;
margin-bottom: 24rpx;
position: relative;
font-weight: 600;
}
.box .title::after {
......@@ -277,15 +278,15 @@ page {
.full_icon {
position: absolute;
right: 26rpx;
top: 26rpx;
right: 24rpx;
top: 24rpx;
z-index: 100;
}
.delete_icon {
position: absolute;
right: 26rpx;
bottom: 26rpx;
right: 24rpx;
bottom: 24rpx;
z-index: 100;
}
.icon {
......@@ -294,14 +295,13 @@ page {
}
.full_icon .icon {
width: 40rpx;
height: 40rpx;
width: 32rpx;
height: 32rpx;
}
.deleteIcon {
transform: rotate(-90deg);
width: 80rpx;
height: 80rpx;
width: 32rpx;
height: 32rpx;
/* z-index: 2; */
}
......@@ -318,7 +318,7 @@ page {
transform: translate(-50%, -50%);
font-size: 32rpx;
font-weight: 500;
color: #DFDFDF;
color: #BEC1C7;
}
.tire-block {
......@@ -376,8 +376,8 @@ page {
}
.icon-plus {
width: 35rpx;
height: 35rpx;
width: 80rpx;
height: 80rpx;
margin-bottom: 20rpx;
}
......
......@@ -71,7 +71,7 @@ page {
}
.placeholder-class {
color: #C3C3C3;
color: #BEC1C7;
}
.between {
......
/* tabWorkOrder/pages/updateOrderInfo/updateOrderInfo.wxss */
\ No newline at end of file
......@@ -58,7 +58,7 @@ page {
}
.placeholder-class {
color: #C3C3C3;
color: #BEC1C7;
}
.between {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!