diff --git a/coupon/details.html b/coupon/details.html index c229b5f..9fe65b3 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -570,7 +570,7 @@ //优惠券订单支付 createdPay (orderNumber) { - req.axiosGet('/key/coupon/createPay/' + orderNumber).then(res => { + req.axiosGet('/key/coupon/createPay/' + orderNumber,{token:localStorage.getItem('token')}).then(res => { if (res.code == 200) { this.payWayRun(res.data); } else { diff --git a/coupon/myOrder.html b/coupon/myOrder.html index 4fa1f83..c2bd4b5 100644 --- a/coupon/myOrder.html +++ b/coupon/myOrder.html @@ -233,7 +233,7 @@ /* 调用支付 */ payRealFunction (isSupport) { - req.axiosGet(`/key/coupon/createPay/${this.activeOrder.order_number}`).then(({ code, data, message }) => { + req.axiosGet(`/key/coupon/createPay/${this.activeOrder.order_number}`,{token:localStorage.getItem('token')}).then(({ code, data, message }) => { if (code === 403) { this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true }) this.toPage(3)