test:打印order_number

This commit is contained in:
Apple 2022-11-02 19:20:57 +08:00
parent 5e09f2f55e
commit 7a6988269f
1 changed files with 4 additions and 2 deletions

View File

@ -579,6 +579,7 @@
//优惠券订单支付 //优惠券订单支付
createdPay (orderNumber) { createdPay (orderNumber) {
console.log(582,orderNumber);
this.orderNumber=orderNumber; this.orderNumber=orderNumber;
let open_id = localStorage.getItem('code_weixin') let open_id = localStorage.getItem('code_weixin')
console.log(582,open_id); console.log(582,open_id);
@ -631,7 +632,8 @@
} }
}, },
onBridgeReady(data) { onBridgeReady(data) {
console.log(625,data); console.log(625,self);
let self=this;
WeixinJSBridge.invoke( WeixinJSBridge.invoke(
'getBrandWCPayRequest', { 'getBrandWCPayRequest', {
"appId": data.appId, //公众号名称,由商户传入 "appId": data.appId, //公众号名称,由商户传入
@ -643,7 +645,7 @@
}, },
function (res) { function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") { 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") { } else if (res.err_msg == "get_brand_wcpay_request:cancel") {