先下单后支付优惠券相关调试

This commit is contained in:
GaoHao
2024-11-18 16:41:32 +08:00
parent fb4f8820a4
commit 69151ca3f4
5 changed files with 57 additions and 26 deletions

View File

@@ -387,12 +387,16 @@
orderInfo: res.data.tradeNo, // 微信支付商户号
// #endif
success: (res) => {
uni.showToast({
title: "支付成功"
})
// resultCode 9000
console.log(res)
console.log(2)
uni.hideLoading()
let pages = getCurrentPages()
// #ifdef MP-WEIXIN
uni.showToast({
title: "支付成功"
})
uni.requestSubscribeMessage({
tmplIds:["AV-KybUHaK3KtFVLqpy6PHccHBS7XeX__mOM4RbufnQ"],
complete() {
@@ -414,6 +418,16 @@
})
// #endif
// #ifdef MP-ALIPAY
if ( res.resultCode == '9000') {
uni.showToast({
title: "支付成功"
})
} else {
uni.showToast({
title: "支付失败"
})
}
if ( _this.type && _this.type == "topUpActivity") {
uni.pro.navigateBack()
} else {