From 32d09199d49f31eebee496de8d1e5ba8d37c3c11 Mon Sep 17 00:00:00 2001 From: From-wh Date: Thu, 23 Feb 2023 10:48:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20svip=E8=B4=AD=E4=B9=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/components/payment/index.vue | 7 +------ template/uni-app/pages/annex/vip_paid/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/template/uni-app/components/payment/index.vue b/template/uni-app/components/payment/index.vue index c42fbf850..9e65ab255 100644 --- a/template/uni-app/components/payment/index.vue +++ b/template/uni-app/components/payment/index.vue @@ -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) diff --git a/template/uni-app/pages/annex/vip_paid/index.vue b/template/uni-app/pages/annex/vip_paid/index.vue index 50a7a9957..daeb1c6c3 100644 --- a/template/uni-app/pages/annex/vip_paid/index.vue +++ b/template/uni-app/pages/annex/vip_paid/index.vue @@ -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':