提交代码
This commit is contained in:
@@ -230,9 +230,9 @@
|
||||
},
|
||||
|
||||
onUnload() {
|
||||
uni.switchTab({
|
||||
url: '/pages/order/order'
|
||||
})
|
||||
// uni.switchTab({
|
||||
// url: '/pages/order/order'
|
||||
// })
|
||||
uni.$off('getMessage')
|
||||
this.ispws = false
|
||||
},
|
||||
@@ -396,6 +396,22 @@
|
||||
},
|
||||
|
||||
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() //微信支付
|
||||
@@ -441,14 +457,17 @@
|
||||
uni.showToast({
|
||||
title: "支付成功"
|
||||
})
|
||||
let _this = this
|
||||
|
||||
uni.cache.set('shopUser', '') //删除shopUser
|
||||
this.paymodfiyOrderInfo()
|
||||
setTimeout(res => {
|
||||
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + this
|
||||
.listinfo.id,
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
.listinfo.id
|
||||
});
|
||||
}, 500)
|
||||
}, 700)
|
||||
},
|
||||
});
|
||||
// #endif
|
||||
@@ -469,9 +488,10 @@
|
||||
// ->4 不是会员,
|
||||
if (res.data == 1) {
|
||||
this.showToastUppop('支付成功')
|
||||
setTimeout(res => {
|
||||
let _this = this
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + this
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
.listinfo.id
|
||||
});
|
||||
}, 700)
|
||||
|
||||
Reference in New Issue
Block a user