From 5e09f2f55e8ae86ea96f49fd0a61a3703c317493 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Wed, 2 Nov 2022 19:00:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98JSPAI?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F=E8=B7=B3=E8=BD=AC=E4=B8=AD?= =?UTF-8?q?=E8=BD=AC=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/details.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coupon/details.html b/coupon/details.html index 084aeb9..9ee3e67 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -232,6 +232,7 @@ bottomText: '', /* 复制按钮 */ href: '',/* 支付地址 */ receive_time: {}, + orderNumber:'', isLogin: false,/* 是否跳登录页 */ } }, @@ -578,6 +579,7 @@ //优惠券订单支付 createdPay (orderNumber) { + this.orderNumber=orderNumber; let open_id = localStorage.getItem('code_weixin') console.log(582,open_id); let data={ @@ -641,7 +643,7 @@ }, function (res) { if (res.err_msg == "get_brand_wcpay_request:ok") { - alert('支付成功'); + window.location.replace('/paysuccess.html?order_number=' + this.orderNumber + '&token=' + localStorage.getItem('token')); //支付成功后跳转的页面 } else if (res.err_msg == "get_brand_wcpay_request:cancel") {