下单逻辑修改提测
This commit is contained in:
@@ -283,23 +283,24 @@
|
||||
// #ifdef MP-ALIPAY
|
||||
uni.requestPayment({
|
||||
provider: 'alipay', //支付类型-固定值
|
||||
orderInfo: res.data.appId, // 微信支付商户号
|
||||
orderInfo: res.data.tradeNo, // 微信支付商户号
|
||||
|
||||
success: (res) => {
|
||||
let _this = this
|
||||
uni.requestSubscribeMessage({
|
||||
tmplIds: ['z0fUG7-jhSfYCrw6poOvSRzh4_hgnPkm_5C7E5s5bCQ'],
|
||||
complete() {
|
||||
uni.showToast({
|
||||
title: "支付成功"
|
||||
})
|
||||
// uni.cache.set('shopUser', '') //删除shopUser
|
||||
_this.paymodfiyOrderInfo()
|
||||
uni.redirectTo({
|
||||
url: '/pagesOrder/order_detail/index?orderId=' + _this.listinfoid
|
||||
});
|
||||
},
|
||||
})
|
||||
// uni.requestSubscribeMessage({
|
||||
// tmplIds: ['z0fUG7-jhSfYCrw6poOvSRzh4_hgnPkm_5C7E5s5bCQ'],
|
||||
// complete() {
|
||||
// uni.showToast({
|
||||
// title: "支付成功"
|
||||
// })
|
||||
// // uni.cache.set('shopUser', '') //删除shopUser
|
||||
|
||||
// },
|
||||
// })
|
||||
_this.paymodfiyOrderInfo()
|
||||
uni.redirectTo({
|
||||
url: '/pagesOrder/order_detail/index?orderId=' + _this.listinfoid
|
||||
});
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading()
|
||||
|
||||
Reference in New Issue
Block a user