fix: svip购买

This commit is contained in:
From-wh 2023-02-23 10:48:33 +08:00
parent b1a6235536
commit 32d09199d4
2 changed files with 4 additions and 9 deletions

View File

@ -169,7 +169,7 @@
}).then(res => {
let jsConfig = res.data.result.jsConfig;
console.log(paytype)
if (res.data.status === 'ALLINPAY_PAY') {
if (res.data.status == 'ALLINPAY_PAY') {
uni.hideLoading();
// #ifdef MP
wx.openEmbeddedMiniProgram({
@ -197,11 +197,6 @@
// #endif
// #ifdef APP-PLUS
plus.runtime.openURL(jsConfig.payinfo);
setTimeout(e => {
uni.reLaunch({
url: goPages
})
}, 1000)
// #endif
// #ifdef H5
this.formpost(res.data.result.pay_url, jsConfig)

View File

@ -552,8 +552,8 @@
}
})
this.jumpData = {
orderId: res.data.result.orderId,
msg: res.msg,
orderId: data.data.result.orderId,
msg: data.msg,
}
// #endif
// #ifdef APP-PLUS
@ -565,7 +565,7 @@
}, 1000)
// #endif
// #ifdef H5
this.formpost(res.data.result.pay_url, jsConfig)
this.formpost(data.data.result.pay_url, jsConfig)
// #endif
break;
case 'PAY_ERROR':