|
|
@@ -17,7 +17,8 @@ Page({ |
|
|
|
sec: null, |
|
|
|
showPage: false, |
|
|
|
discountStatus:null, |
|
|
|
disabled:false |
|
|
|
disabled:false, |
|
|
|
display:"block!important" |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@@ -205,6 +206,8 @@ Page({ |
|
|
|
}, |
|
|
|
payOrderUpdate: (orderId, payOrderId, status, reason, type, _this) => { |
|
|
|
let that = this; |
|
|
|
console.log(that) |
|
|
|
console.log(_this) |
|
|
|
// 支付成功 |
|
|
|
Http.post({ |
|
|
|
url: config.api.payOrderUpdate, |
|
|
@@ -216,7 +219,10 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
wx.hideLoading() |
|
|
|
wx.hideLoading(); |
|
|
|
_this.setData({ |
|
|
|
display: "none!important", |
|
|
|
}) |
|
|
|
// 有价券 |
|
|
|
if (!type && type != 'free') { |
|
|
|
wx.navigateTo({ |
|
|
@@ -291,7 +297,7 @@ Page({ |
|
|
|
/** |
|
|
|
* 用户支付成功以后跳转到券包列表 |
|
|
|
*/ |
|
|
|
if (that.data.cardType == 7) { |
|
|
|
if (that.data.cardType == 100) { |
|
|
|
wx.setStorage({ |
|
|
|
key: 'couponNum2', |
|
|
|
data: "couponNum2" |
|
|
@@ -330,7 +336,7 @@ Page({ |
|
|
|
} else { |
|
|
|
// 免费券 |
|
|
|
that.payOrderUpdate(orderId, "0", 1, '', 'free'); |
|
|
|
if (that.data.cardType == 7) { |
|
|
|
if (that.data.cardType == 100) { |
|
|
|
wx.setStorage({ |
|
|
|
key: 'couponNum2', |
|
|
|
data: "couponNum2" |
|
|
|