feat: 增加现金支付

This commit is contained in:
HongRun Liu
2026-08-05 10:51:29 +08:00
parent 1daec0121b
commit 25da673443
16 changed files with 1535 additions and 1230 deletions
+14 -1
View File
@@ -31,7 +31,7 @@
</view>
</view>
</view>
<view
class="detail-goods"
:style="[{ marginTop: state.orderInfo.receiverAreaId > 0 ? '0' : '-40rpx' }]"
@@ -178,6 +178,12 @@
text: '已取消',
text1: '您的订单已取消!',
},
70: {
text: '现金待确认',
text1: '等待工作人员确认收款',
btn1: '切换支付',
btn2: '取消订单',
},
});
// ========== 门店自提(核销) ==========
@@ -264,6 +270,13 @@
// 取消订单
cancelOrder();
}
if (Number(state.orderInfo.status) === 70 && type === 2) {
cancelOrder();
}
if (Number(state.orderInfo.status) === 70 && type === 1) {
// 现金待确认切回线上支付
goPay();
}
if (state.orderInfo.status === 20 && type === 1) {
// 确认收货confirmReceive
OrderApi.confirmReceive({