From 5f041dc1f86972c6b22a20abc044f2e45e3ff98e Mon Sep 17 00:00:00 2001 From: Apple <> Date: Fri, 21 Oct 2022 17:56:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=94=AF=E4=BB=98=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=90=8E=E9=A1=B5=E9=9D=A2):=E4=BF=AE=E5=A4=8D=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=9B=9E=E8=B0=83=E7=82=B9=E5=87=BB=E5=8E=BB=E5=85=91?= =?UTF-8?q?=E6=8D=A2=EF=BC=8C=E6=B2=A1=E6=9C=89=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1/=E6=94=AF=E4=BB=98=E5=AE=9D=E5=85=91?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paysuccess.html | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) 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) { //支付宝-微信环境中不能唤起支付宝