From-wh пре 2 година
родитељ
комит
32d09199d4

+ 1 - 6
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)

+ 3 - 3
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':