提交代码
This commit is contained in:
@@ -127,10 +127,6 @@
|
||||
console.log(e)
|
||||
this.orderId = e.orderId
|
||||
this.orderorderInfo()
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
onShow() {
|
||||
if (this.orderId) {
|
||||
|
||||
@@ -171,7 +171,8 @@
|
||||
以优惠¥{{emitorderfoodform.couponsPrice}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="fixedview_tow" @tap="$u.debounce(showpopupclickdd, 500)">
|
||||
<view class="fixedview_tow" @tap="showpopupclickdd">
|
||||
<!-- <view class="fixedview_tow" @tap="$u.debounce(showpopupclickdd, 500)"> -->
|
||||
立即付款
|
||||
</view>
|
||||
</view>
|
||||
@@ -396,22 +397,8 @@
|
||||
},
|
||||
|
||||
showpopupclickdd() {
|
||||
console.log('调试1')
|
||||
// setTimeout(() => {
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: ['z0fUG7-jhSfYCrw6poOvSRzh4_hgnPkm_5C7E5s5bCQ'],
|
||||
success(){
|
||||
console.log(1)
|
||||
},
|
||||
fail(){
|
||||
console.log(2)
|
||||
},
|
||||
complete(){
|
||||
console.log(3)
|
||||
},
|
||||
})
|
||||
// },1500)
|
||||
return
|
||||
|
||||
|
||||
// radiovalue1为1是微信支付
|
||||
if (this.radiovalue1 == 1) {
|
||||
this.showpopupclickdds() //微信支付
|
||||
@@ -454,20 +441,35 @@
|
||||
signType: res.data.signType, //固定值
|
||||
paySign: res.data.paySign, //签名
|
||||
success: (res) => {
|
||||
uni.showToast({
|
||||
title: "支付成功"
|
||||
})
|
||||
let _this = this
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: ['z0fUG7-jhSfYCrw6poOvSRzh4_hgnPkm_5C7E5s5bCQ'],
|
||||
complete() {
|
||||
|
||||
uni.showToast({
|
||||
title: "支付成功"
|
||||
})
|
||||
|
||||
uni.cache.set('shopUser', '') //删除shopUser
|
||||
this.paymodfiyOrderInfo()
|
||||
|
||||
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
.listinfo.id
|
||||
});
|
||||
},
|
||||
})
|
||||
|
||||
uni.cache.set('shopUser', '') //删除shopUser
|
||||
this.paymodfiyOrderInfo()
|
||||
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
.listinfo.id
|
||||
});
|
||||
}, 700)
|
||||
|
||||
|
||||
// setTimeout(() => {
|
||||
// uni.redirectTo({
|
||||
// url: '/pages/order/order_detail?orderId=' + _this
|
||||
// .listinfo.id
|
||||
// });
|
||||
// }, 700)
|
||||
},
|
||||
});
|
||||
// #endif
|
||||
@@ -489,12 +491,17 @@
|
||||
if (res.data == 1) {
|
||||
this.showToastUppop('支付成功')
|
||||
let _this = this
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
.listinfo.id
|
||||
});
|
||||
}, 700)
|
||||
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: ['z0fUG7-jhSfYCrw6poOvSRzh4_hgnPkm_5C7E5s5bCQ'],
|
||||
complete() {
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
.listinfo.id
|
||||
});
|
||||
},
|
||||
})
|
||||
|
||||
} else if (res.data == 2) {
|
||||
this.showToastUppop('余额不足')
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user