Commit d7a9fe72 by 张立顺

fix bug

1 parent ca83ff97
...@@ -71,6 +71,7 @@ page { ...@@ -71,6 +71,7 @@ page {
} }
.isFullSucreen { .isFullSucreen {
box-sizing: border-box;
padding-bottom: constant(safe-area-inset-bottom) !important; padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important; padding-bottom: env(safe-area-inset-bottom) !important;
// padding-bottom: 34px !important; // padding-bottom: 34px !important;
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</block> </block>
</view> </view>
</gl-cell> </gl-cell>
<gl-cell wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 )&&!orderInfo.resetOrder }}" value="{{ successDateTime }}" bind:click="toSelectDate" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="门店收款时间" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell> <gl-cell wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 )&&!orderInfo.resetOrder }}" value="{{ successDateTime }}" bind:click="toSelectDate" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'门店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell>
<view class="box"> <view class="box">
<view class="title remarkTitle">备注</view> <view class="title remarkTitle">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field> <van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field>
......
...@@ -319,7 +319,7 @@ Page({ ...@@ -319,7 +319,7 @@ Page({
return wx.$util.showToast("请选择增值车损险商品"); return wx.$util.showToast("请选择增值车损险商品");
// 非标记错误,门店收款 // 非标记错误,门店收款
if (!orderInfo.pay2Time && (orderInfo.payType == 2 || orderInfo.payType == 5) && !orderInfo.resetOrder) if (!orderInfo.pay2Time && (orderInfo.payType == 2 || orderInfo.payType == 5) && !orderInfo.resetOrder)
return wx.$util.showToast("请选择门店收款时间"); return wx.$util.showToast(orderInfo.payType == 2 ? "请选择门店收款时间" : "请选择嘀加收款时间");
// 修改权益报价逻辑 // 修改权益报价逻辑
if (confirmStatus) return false; if (confirmStatus) return false;
this.setData({ this.setData({
......
...@@ -114,7 +114,7 @@ Page({ ...@@ -114,7 +114,7 @@ Page({
} }
} else { } else {
if (!successDate && !isErrorOrder && selectPayType != 0) if (!successDate && !isErrorOrder && selectPayType != 0)
return wx.$util.showToast("请选择门店付款时间"); return wx.$util.showToast(selectPayType == 5 ? "请选择嘀加收款时间" : "请选择门店收款时间");
this.setData({ this.setData({
showPopup: true, showPopup: true,
}); });
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{flag}}"> <block wx:if="{{flag}}">
<view class="main {{isFullSucreen&&!userInfo.isSuper && userInfo.userType == 2?'isFullSucreen':''}}"> <view class="main {{isFullSucreen&&!userInfo.isSuper && userInfo.userType == 2?'isFullSucreenCom':''}}">
<view class="status-box"> <view class="status-box">
<block wx:if="{{orderInfo.selectPayType == 3 || orderInfo.selectPayType == 1 }}"> <block wx:if="{{orderInfo.selectPayType == 3 || orderInfo.selectPayType == 1 }}">
<view class="content">等待客户付款</view> <view class="content">等待客户付款</view>
......
...@@ -26,18 +26,22 @@ ...@@ -26,18 +26,22 @@
.pay_value .wxpay{ .pay_value .wxpay {
display: inline-block; display: inline-block;
width: var(--fontSize48); width: var(--fontSize48);
height: var(--fontSize48); height: var(--fontSize48);
margin-right: var(--fontSize12); margin-right: var(--fontSize12);
} }
.payTips { .payTips {
color: #999;margin-left: var(--fontSize20); color: #999;
margin-left: var(--fontSize20);
} }
.tips-btn{
.tips-btn {
flex-direction: column; flex-direction: column;
} }
.btn-box .tips { .btn-box .tips {
box-sizing: border-box; box-sizing: border-box;
padding: 0 var(--fontSize32); padding: 0 var(--fontSize32);
...@@ -47,6 +51,7 @@ margin-right: var(--fontSize12); ...@@ -47,6 +51,7 @@ margin-right: var(--fontSize12);
.placeholder { .placeholder {
color: #C3C3C3; color: #C3C3C3;
} }
.arrow { .arrow {
position: absolute; position: absolute;
right: var(--fontSize40); right: var(--fontSize40);
...@@ -55,27 +60,32 @@ margin-right: var(--fontSize12); ...@@ -55,27 +60,32 @@ margin-right: var(--fontSize12);
width: var(--fontSize28); width: var(--fontSize28);
height: var(--fontSize26); height: var(--fontSize26);
} }
.date-box{
.date-box {
display: flex; display: flex;
align-items: center; align-items: center;
padding: var(--fontSize40); padding: var(--fontSize40);
position: relative; position: relative;
} }
.date-box-label{
.date-box-label {
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #999EA8; color: #999EA8;
margin-right: var(--fontSize40); margin-right: var(--fontSize40);
} }
.date-box-value{
.date-box-value {
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
} }
.required { .required {
color: #f00; color: #f00;
} }
.handlerBtn{
.handlerBtn {
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: #347BFF; color: #347BFF;
...@@ -148,7 +158,7 @@ margin-right: var(--fontSize12); ...@@ -148,7 +158,7 @@ margin-right: var(--fontSize12);
.meal-bd-head .price { .meal-bd-head .price {
font-family: "numberNor"; font-family: "numberNor";
margin-left:auto; margin-left: auto;
} }
.meal-bd-bottom { .meal-bd-bottom {
...@@ -157,9 +167,17 @@ margin-right: var(--fontSize12); ...@@ -157,9 +167,17 @@ margin-right: var(--fontSize12);
font-weight: 400; font-weight: 400;
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #757980; color: #757980;
margin-left:var(--fontSize24); margin-left: var(--fontSize24);
} }
.meal-bd-bottom .count { .meal-bd-bottom .count {
margin-left: var(--fontSize12); margin-left: var(--fontSize12);
} }
.isFullSucreenCom {
padding-bottom: var(--fontSize228) !important;
}
.isFullSucreen-btn {
padding-bottom: var(--fontSize68) !important;
}
\ No newline at end of file \ No newline at end of file
...@@ -174,7 +174,7 @@ Page({ ...@@ -174,7 +174,7 @@ Page({
}, },
chooseCustomerInfo(e) { chooseCustomerInfo(e) {
let { detail } = e; let { detail } = e;
let { outTradeNo, orderObj: { associateOrderType, associateOrderCode } } = this.data let { outTradeNo, showPayList, orderObj: { associateOrderType, associateOrderCode } } = this.data
detail.outTradeNo = outTradeNo detail.outTradeNo = outTradeNo
console.log(detail, 'detail'); console.log(detail, 'detail');
// 解决补录订单 这两个参数丢失问题 // 解决补录订单 这两个参数丢失问题
...@@ -182,6 +182,11 @@ Page({ ...@@ -182,6 +182,11 @@ Page({
detail.associateOrderType = associateOrderType detail.associateOrderType = associateOrderType
detail.associateOrderCode = associateOrderCode detail.associateOrderCode = associateOrderCode
} }
// detail.selectPayType = 3
// 判断一下档案支付方式现在是否还在,在就替换,没有就去掉这个参数
if (!showPayList.some(item => { item.value == detail.selectPayType })) {
delete detail.selectPayType
}
this.onRoute(detail); this.onRoute(detail);
}, },
closeTips() { closeTips() {
......
...@@ -160,6 +160,10 @@ page { ...@@ -160,6 +160,10 @@ page {
/* justify-content: space-between; */ /* justify-content: space-between; */
} }
.error-box {
flex-wrap: wrap;
}
.payType-box .item { .payType-box .item {
white-space: nowrap; white-space: nowrap;
margin-right: 4px; margin-right: 4px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!