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