feat: 优化
This commit is contained in:
parent
7d5f16d47b
commit
9b58f12aa9
|
|
@ -3,7 +3,7 @@ let accountInfo = wx.getAccountInfoSync();
|
|||
let envVersion = accountInfo.miniProgram.envVersion
|
||||
|
||||
//手动指定版本
|
||||
// envVersion = 'trial'
|
||||
envVersion = 'trial'
|
||||
|
||||
let hosts = {
|
||||
"develop": 'http://wanyu.test',
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
<view class="value flex-l">{{helpers.removeCommas(data.order_info.area.merge_name)}}{{ data.order_info.address }}</view>
|
||||
</view>
|
||||
<view class="item-multi-line line-after">
|
||||
<view class="title flex-l">详情</view>
|
||||
<view class="title flex-l">订单详情</view>
|
||||
<view class="value flex-l">{{data.order_info.detail ? data.order_info.detail : '暂无详情'}}</view>
|
||||
</view>
|
||||
<view class="images line-after" v-if="data.order_info.images.length > 0">
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="item-multi-line line-after">
|
||||
<view class="title flex-l">客户备注</view>
|
||||
<view class="title flex-l">平台备注</view>
|
||||
<view class="value flex-l">{{data.order_info.remark ? data.order_info.remark : '无备注信息'}}</view>
|
||||
</view>
|
||||
<view class="report-order-exception flex-c" v-if="canReportOrderException">
|
||||
|
|
@ -200,7 +200,13 @@ import enums from "../../utils/enums";
|
|||
|
||||
//是否可上报异常,未接单和已拒接的无法上报
|
||||
const canReportOrderException = computed(() => {
|
||||
return data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_TOGET && data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_REFUSED
|
||||
const excludedStatuses = [
|
||||
enums.ORDER_DISPATCH_STATUS.STATUS_TOGET,
|
||||
enums.ORDER_DISPATCH_STATUS.STATUS_REFUSED,
|
||||
enums.ORDER_DISPATCH_STATUS.STATUS_FINISH
|
||||
];
|
||||
|
||||
return !excludedStatuses.includes(data.value.status);
|
||||
})
|
||||
|
||||
const changePlanTime = (time) => {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<view class="detail flex-l" v-if="item.order_info.address !== ''">{{item.order_info.address}}</view>
|
||||
<view class="area flex-l">{{helpers.removeCommas(item.order_info.area.merge_name)}}</view>
|
||||
</view>
|
||||
<view class="right" @click.stop="helpers.openLocation(item.order_info.lat, item.order_info.lng)">
|
||||
<view class="right" v-if="item.status !== enums.ORDER_DISPATCH_STATUS.STATUS_FINISH" @click.stop="helpers.openLocation(item.order_info.lat, item.order_info.lng)">
|
||||
<view class="icon-ctr flex-c">
|
||||
<me-icon type="icon-navigation" color="var(--descriptionColor)" size="60rpx"></me-icon>
|
||||
</view>
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
<view class="name flex-l" v-if="item.order_info.receive_type === 1">上门报价</view>
|
||||
<view class="name flex-l" v-else>平台已收款</view>
|
||||
</view>
|
||||
<view class="right flex-r" @click.stop="helpers.makePhoneCall(item.order_info.tel)">
|
||||
<view v-if="item.status !== enums.ORDER_DISPATCH_STATUS.STATUS_FINISH" class="right flex-r" @click.stop="helpers.makePhoneCall(item.order_info.tel)">
|
||||
<me-icon type="icon-call" color="var(--themeColor)" size="44rpx"></me-icon>
|
||||
<view class="name flex-l">联系客户</view>
|
||||
</view>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user