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

@@ -70,7 +70,7 @@
<view class="voucherPop-name">支付提示</view>
<view class="voucherPop-text">抱歉此订单不支持线上支付请上传打款凭证</view>
<view class="voucherPop-btn">
<view class="voucherPop-go" @click="cancelPay">
<view class="voucherPop-go" @click="voucherState = false">
暂不支付
</view>
<view class="voucherPop-go voucherPop-up" @click="clickOpen">
@@ -101,6 +101,7 @@
disabled : false,
orderId : '', // 订单 ID
orderType : '', // 订单类型
orderPrice : '', // 订单金额
voucherState : false, // 上传凭证弹出
}
},
@@ -200,6 +201,7 @@
expressSheet(id, type, can, price) {
this.orderId = id
this.orderType = type
this.orderPrice = price
uni.showActionSheet({
itemList: ['线上支付', '线下支付'],
success: sheetRes => {
@@ -210,37 +212,29 @@
}
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: 1}})
},3000)
}
fail: sheetFail => {}
})
},
// 取消支付
cancelPay() {
this.voucherState = false
uni.showToast({
title: '取消支付',
icon : 'none'
})
setTimeout(()=>{
this.$Router.replace({name: 'YearOrder', params: {yearType: 1}})
},3000)
},
// cancelPay() {
// this.voucherState = false
// uni.showToast({
// title: '取消支付',
// icon : 'none'
// })
// setTimeout(()=>{
// this.$Router.replace({name: 'YearOrder', params: {yearType: 1}})
// },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}})
},
}
}