From a1d0e825ef304db2b43f61f6a84bcf2b578075b8 Mon Sep 17 00:00:00 2001 From: "geng.tang@qq.com" Date: Sat, 6 Jan 2024 15:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=91=E5=AE=9A=E5=92=8C?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=94=B6=E8=B4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/enum/order/DeliveryStatus.js | 3 +- common/enum/order/ReceiptStatus.js | 3 +- pages/order/delivery.vue | 5 --- pages/order/detail.vue | 5 ++- pages/order/index.vue | 58 +++++++++++++---------------- 5 files changed, 33 insertions(+), 41 deletions(-) diff --git a/common/enum/order/DeliveryStatus.js b/common/enum/order/DeliveryStatus.js index ed55f95..3a24f0e 100755 --- a/common/enum/order/DeliveryStatus.js +++ b/common/enum/order/DeliveryStatus.js @@ -6,5 +6,6 @@ import Enum from '../enum' */ export default new Enum([ { key: 'NOT_DELIVERED', name: '未发货', value: 10 }, - { key: 'DELIVERED', name: '已发货', value: 20 } + { key: 'DELIVERED', name: '已发货', value: 20 }, + { key: 'ACCEPT', name: '已绑定', value: 20 } ]) diff --git a/common/enum/order/ReceiptStatus.js b/common/enum/order/ReceiptStatus.js index 34916a0..a775b8f 100755 --- a/common/enum/order/ReceiptStatus.js +++ b/common/enum/order/ReceiptStatus.js @@ -6,5 +6,6 @@ import Enum from '../enum' */ export default new Enum([ { key: 'NOT_RECEIVED', name: '未收货', value: 10 }, - { key: 'RECEIVED', name: '已收货', value: 20 } + { key: 'RECEIVED', name: '已收货', value: 20 }, + { key: 'BINDED', name: '已绑定', value: 40 }, ]) diff --git a/pages/order/delivery.vue b/pages/order/delivery.vue index 16dda19..c7d9d94 100755 --- a/pages/order/delivery.vue +++ b/pages/order/delivery.vue @@ -189,14 +189,9 @@ phone: that.receiptPhone, type: 'RECEIPT' }).then(function (result) { - console.log(result) if(result){ if(result.code == 0) { that.$success("发送短信验证码成功") - that.orderSourceData = [] - // 刷新订单列表 - that.getData() - that.disabled = true that.setInterValFunc() } else { diff --git a/pages/order/detail.vue b/pages/order/detail.vue index 7aae80a..99bad3d 100755 --- a/pages/order/detail.vue +++ b/pages/order/detail.vue @@ -34,8 +34,9 @@ 已完成 待支付 - 待绑定 - 进行中 + 待收货 + 待绑定 + 进行中 进行中 diff --git a/pages/order/index.vue b/pages/order/index.vue index bac515d..74f1146 100755 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -13,14 +13,16 @@ {{ item.merchantName }} - 已完成 - 待支付 - 待绑定 - 进行中 - 进行中 - + 待支付 + 已完成 + + 待绑定 + 待收货 + + 已绑定 + + + 进行中 @@ -46,8 +48,7 @@ 到期时间:{{ item.expirationTime }} 下单时间:{{ item.payTime }} - 设备编号:{{ item.equipment.equipmentCode }} + 设备编号:{{ item.equipment.equipmentCode ? item.equipment.equipmentCode : ''}} 设备名称:{{ item.equipmentGoods.goodsName }} 设备型号:{{ item.equipmentGoods.batteryModel }} 逾期状态: @@ -55,11 +56,6 @@ 逾期状态: 即将过期 - - - - - + 核销码 @@ -108,20 +100,22 @@ 去支付 - - + + 确认收货 + + + 绑定设备 - 换电 - 详情 + 详情 { @@ -744,8 +738,8 @@ font-size: 26rpx; vertical-align: bottom; text-align: right; - height: 50rpx; - padding-top: 20rpx; + height: 80rpx; + padding-top: 60rpx; margin-bottom: 30rpx; .unit {