Commit ede4dccd by zhangxw

联调 样式修改

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