This commit is contained in:
2023-06-09 17:59:05 +08:00
parent 59b15f321d
commit 47a057b35b
237 changed files with 669 additions and 216 deletions

View File

@@ -171,6 +171,7 @@
orderId : '', // 订单 ID
orderType : '', // 订单类型
orderPrice : '', // 订单金额
voucherState : false, // 上传凭证弹出
disabled : false
}
@@ -324,7 +325,19 @@
user_id: ''
}).then(res => {
this.disabled = true
if(res.can.pay_status == 4) {
uni.showLoading({
title: '已支付...',
mask : true
})
// 跳到委托单
setTimeout(()=>{
this.$Router.replace({name: 'EntrustOrder', params: {yearStatus: 1}})
},1000)
return
}
this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price)
}).catch( err => {
uni.showToast({
title: err.message,
@@ -337,6 +350,7 @@
expressSheet(id, type, can, price) {
this.orderId = id
this.orderType = type
this.orderPrice = price
uni.showActionSheet({
itemList: ['线上支付', '线下支付'],
success: sheetRes => {
@@ -347,7 +361,7 @@
}
this.voucherState = true
} else if (sheetRes.tapIndex == 1) {
this.$Router.replace({name: 'VoucherOpen', params: {orderId: id, orderType: type}})
this.$Router.replace({name: 'VoucherOpen', params: {orderId: id, orderType: type, price: price}})
}
},
fail: sheetFail => {
@@ -377,7 +391,7 @@
// 上传凭证
clickOpen() {
this.voucherState = false
this.$Router.replace({name: 'VoucherOpen', params: {orderId: this.orderId, orderType: this.orderType}})
this.$Router.replace({name: 'VoucherOpen', params: {orderId: this.orderId, orderType: this.orderType, price: this.orderPrice}})
},
}
}