feat(创建优惠券订单支付):接口新增token,便于回调返回token值
This commit is contained in:
parent
5fe4cf5df6
commit
a7f8b199f5
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue