test:打印order_number
This commit is contained in:
parent
5e09f2f55e
commit
7a6988269f
|
@ -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") {
|
||||
|
||||
|
|
Loading…
Reference in New Issue