|
@@ -21,7 +21,8 @@ Page({ |
|
|
showErr: false, |
|
|
showErr: false, |
|
|
showAlert: false, |
|
|
showAlert: false, |
|
|
remainingPoints:0, |
|
|
remainingPoints:0, |
|
|
submitAble:true |
|
|
|
|
|
|
|
|
submitAble:true, |
|
|
|
|
|
couponChannelDetail:null |
|
|
}, |
|
|
}, |
|
|
getUserInfo: function () { |
|
|
getUserInfo: function () { |
|
|
let that = this; |
|
|
let that = this; |
|
@@ -221,6 +222,7 @@ Page({ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 支付订单更新 |
|
|
* 支付订单更新 |
|
@@ -239,9 +241,26 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/pages/integralmall/payIntegcouponStatus/index?title=' + _this.data.data.title + '&coverImg=' + _this.data.data.coverImg + '&remainingPoints=' + _this.data.remainingPoints + '&type=' + _this.data.data.type, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
// 如果是停车券直接跳往停车页 |
|
|
|
|
|
if (_this.couponChannelDetail.type == 51 ||_this.couponChannelDetail.type== 5) { |
|
|
|
|
|
wx.showModal({ |
|
|
|
|
|
title: '兑换成功', |
|
|
|
|
|
cancelText: '我知道了', |
|
|
|
|
|
confirmText: '去使用', |
|
|
|
|
|
content: '即将前往停车页面', |
|
|
|
|
|
success(res) { |
|
|
|
|
|
if (res.confirm) { |
|
|
|
|
|
wx.switchTab({ |
|
|
|
|
|
url: '/index/passCar' |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/pages/integralmall/payIntegcouponStatus/index?title=' + _this.data.data.title + '&coverImg=' + _this.data.data.coverImg + '&remainingPoints=' + _this.data.remainingPoints + '&type=' + _this.data.data.type, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
if (err.code != 12002) { |
|
|
if (err.code != 12002) { |
|
@@ -262,6 +281,8 @@ Page({ |
|
|
couponChannelId: couponChannelId |
|
|
couponChannelId: couponChannelId |
|
|
} |
|
|
} |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
|
|
|
that.couponChannelDetail=res.data |
|
|
|
|
|
console.log(that.couponChannelDetail.merchantVoList[0].merchantName,'that.couponChannelDetail'); |
|
|
wx.stopPullDownRefresh(); |
|
|
wx.stopPullDownRefresh(); |
|
|
that.getUserInfo() |
|
|
that.getUserInfo() |
|
|
let data = res.data; |
|
|
let data = res.data; |
|
@@ -279,5 +300,5 @@ Page({ |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
submitAble: true |
|
|
submitAble: true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |