This commit is contained in:
2023-05-23 16:47:13 +08:00
parent b84661015a
commit aa1312f5da
17 changed files with 1280 additions and 139 deletions

View File

@@ -118,6 +118,7 @@
disabled : false,
orderId : '', // 订单 ID
orderType : '', // 订单类型
orderPrice : '', // 订单金额
voucherState : false, // 上传凭证弹出
}
},
@@ -226,6 +227,7 @@
expressSheet(id, type, can, price) {
this.orderId = id
this.orderType = type
this.orderPrice = price
uni.showActionSheet({
itemList: ['线上支付', '线下支付'],
success: sheetRes => {
@@ -236,17 +238,11 @@
}
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 => {
uni.showToast({
title: '取消支付',
icon : 'none'
})
setTimeout(()=>{
this.$Router.replace({name: 'YearOrder', params: {yearType: 2}})
},3000)
this.disabled = false
}
})
},
@@ -254,19 +250,20 @@
// 取消支付
cancelPay() {
this.voucherState = false
uni.showToast({
title: '取消支付',
icon : 'none'
})
setTimeout(()=>{
this.$Router.replace({name: 'YearOrder', params: {yearType: 2}})
},3000)
this.disabled = false
// uni.showToast({
// title: '取消支付',
// icon : 'none'
// })
// setTimeout(()=>{
// this.$Router.replace({name: 'YearOrder', params: {yearType: 2}})
// },3000)
},
// 上传凭证
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}})
},
}
}