diff --git a/paysuccess.html b/paysuccess.html index 5a6aed1..3962fa6 100644 --- a/paysuccess.html +++ b/paysuccess.html @@ -11,13 +11,14 @@ - - + + +
-
+

支付成功

@@ -38,7 +39,7 @@
-
@@ -53,15 +54,16 @@ popAttr: { show: false, title: '温馨提示', - status: 2,/*1 成功 2提示 3失败 */ + status: 3,/*1 成功 2提示 3失败 */ text: '错误信息' }, plaflam: 1, + payResult:false, redirect_url: '' //微信小程序链接 }; }, - components: {}, + components: {modelPop}, created() { let orderNumber = this.getQueryString( @@ -109,8 +111,10 @@ this.orderInfo = res.data; if (res.data.type == 2) { //1 商品 2立减金 //channel 1支付宝 2微信 - this.plaflam = res.data.goods.entity.channel;//只有立减金商品才有channel字段 - this.redirect_url = res.data.wechat_redirect_url + this.plaflam = res.data.product.entity.channel;//只有立减金商品才有channel字段 + this.redirect_url = res.data.wechat_redirect_url; + this.payStatus=res.data.pay_status; + this.payResult=true; } } }).catch(); @@ -122,7 +126,7 @@ }, /* 弹框回调,点击按钮触发 */ backFunctionPop() { - + this.popAttr.show=false; }, toLinkAlipay() { //支付宝H5跳转 @@ -137,6 +141,17 @@ }, //领取立减金 receiveFn() { + if(this.payStatus!=2){ + this.openTipDialog({ + show: true, + title: '温馨提示', + status: 2,/*1 成功 2提示 3失败 */ + text: '支付结算中,请等待支付结果...' + }); + return + } + console.log(153,this.plaflam ); + return let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境 if (this.plaflam == 1) { //支付宝-微信环境中不能唤起支付宝