From 7a6988269fd04da9c01c6c0b9e94d7187577bff0 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Wed, 2 Nov 2022 19:20:57 +0800 Subject: [PATCH] =?UTF-8?q?test:=E6=89=93=E5=8D=B0order=5Fnumber?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/details.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coupon/details.html b/coupon/details.html index 9ee3e67..8db85a1 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -579,6 +579,7 @@ //优惠券订单支付 createdPay (orderNumber) { + console.log(582,orderNumber); this.orderNumber=orderNumber; let open_id = localStorage.getItem('code_weixin') console.log(582,open_id); @@ -631,7 +632,8 @@ } }, onBridgeReady(data) { - console.log(625,data); + console.log(625,self); + let self=this; WeixinJSBridge.invoke( 'getBrandWCPayRequest', { "appId": data.appId, //公众号名称,由商户传入 @@ -643,7 +645,7 @@ }, function (res) { if (res.err_msg == "get_brand_wcpay_request:ok") { - window.location.replace('/paysuccess.html?order_number=' + this.orderNumber + '&token=' + localStorage.getItem('token')); + window.location.replace('/paysuccess.html?order_number=' + self.orderNumber + '&token=' + localStorage.getItem('token')); //支付成功后跳转的页面 } else if (res.err_msg == "get_brand_wcpay_request:cancel") {