diff --git a/pages/getphoneInfo/index.js b/pages/getphoneInfo/index.js index fe88464..a9f791a 100755 --- a/pages/getphoneInfo/index.js +++ b/pages/getphoneInfo/index.js @@ -60,6 +60,14 @@ Page({ }).then( function (res) { app.globalData.phone = res.data.phone; + /** + * 来自积分兑换 + */ + if (that.data.path == 'jifen') { + wx.redirectTo({ + url: `/pages/joinFrDpell/index?couponChannelId=${that.data.paramData.couponChannelId}` + }) + } /** * 来自拼团详情 */ diff --git a/pages/integralmall/payIntegcoupondetail/index.js b/pages/integralmall/payIntegcoupondetail/index.js index 39110d7..28478ed 100644 --- a/pages/integralmall/payIntegcoupondetail/index.js +++ b/pages/integralmall/payIntegcoupondetail/index.js @@ -150,13 +150,13 @@ Page({ */ wx.redirectTo({ url: "/pages/getphoneInfo/index?couponChannelId=" + - that.data.paramData.couponChannelId + that.data.paramData.couponChannelId +"&path=jifen" }); } else if (err.code == 11006) { // 用户手机已加密 wx.redirectTo({ url: "/pages/phoneinput/phoneinput?couponChannelId=" + - that.data.paramData.couponChannelId + that.data.paramData.couponChannelId + "&path=jifen" }); } else { wx.showToast({ diff --git a/pages/phoneinput/phoneinput.js b/pages/phoneinput/phoneinput.js index ec2389b..d047bfa 100644 --- a/pages/phoneinput/phoneinput.js +++ b/pages/phoneinput/phoneinput.js @@ -45,6 +45,14 @@ Page({ } }) .then(res => { + /** + * 来自积分兑换 + */ + if (that.data.path == 'jifen') { + wx.redirectTo({ + url: `/pages/joinFrDpell/index?couponChannelId=${that.data.paramData.couponChannelId}` + }) + } /** * 来自拼团详情 */ diff --git a/utils/creditType.js b/utils/creditType.js index eb6c5e4..8a9b8c6 100644 --- a/utils/creditType.js +++ b/utils/creditType.js @@ -8,9 +8,9 @@ let creditType=[ { name: "完善个人信息", value: "7" }, { name: "积分导入", value: "8" }, { name: "消费积分", value: "9" }, - { name: "消费积分", value: "10" }, + { name: "新增积分", value: "10" }, { name: "积分兑换", value: "11" }, - { name: "线下积分扣除", value: "12" }, + { name: "消费积分", value: "12" }, ] module.exports = { creditType