fix:微信支付JSPAI支付成功跳转中转页
This commit is contained in:
parent
ee85ae59e8
commit
5e09f2f55e
|
@ -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") {
|
||||
|
||||
|
|
Loading…
Reference in New Issue