fix:微信支付JSPAI支付成功跳转中转页

This commit is contained in:
Apple 2022-11-02 19:00:37 +08:00
parent ee85ae59e8
commit 5e09f2f55e
1 changed files with 3 additions and 1 deletions

View File

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