diff --git a/coupon/details.html b/coupon/details.html
index 084aeb9..9ee3e67 100644
--- a/coupon/details.html
+++ b/coupon/details.html
@@ -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") {