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") {