浏览代码

[积分商城][积分兑换绑定手机号兼容]

tags/湖南版5.1.4
刘晖 6 年前
父节点
当前提交
b5464f347d
共有 4 个文件被更改,包括 20 次插入4 次删除
  1. +8
    -0
      pages/getphoneInfo/index.js
  2. +2
    -2
      pages/integralmall/payIntegcoupondetail/index.js
  3. +8
    -0
      pages/phoneinput/phoneinput.js
  4. +2
    -2
      utils/creditType.js

+ 8
- 0
pages/getphoneInfo/index.js 查看文件

@@ -60,6 +60,14 @@ Page({
}).then( }).then(
function (res) { function (res) {
app.globalData.phone = res.data.phone; app.globalData.phone = res.data.phone;
/**
* 来自积分兑换
*/
if (that.data.path == 'jifen') {
wx.redirectTo({
url: `/pages/joinFrDpell/index?couponChannelId=${that.data.paramData.couponChannelId}`
})
}
/** /**
* 来自拼团详情 * 来自拼团详情
*/ */


+ 2
- 2
pages/integralmall/payIntegcoupondetail/index.js 查看文件

@@ -150,13 +150,13 @@ Page({
*/ */
wx.redirectTo({ wx.redirectTo({
url: "/pages/getphoneInfo/index?couponChannelId=" + url: "/pages/getphoneInfo/index?couponChannelId=" +
that.data.paramData.couponChannelId
that.data.paramData.couponChannelId +"&path=jifen"
}); });
} else if (err.code == 11006) { } else if (err.code == 11006) {
// 用户手机已加密 // 用户手机已加密
wx.redirectTo({ wx.redirectTo({
url: "/pages/phoneinput/phoneinput?couponChannelId=" + url: "/pages/phoneinput/phoneinput?couponChannelId=" +
that.data.paramData.couponChannelId
that.data.paramData.couponChannelId + "&path=jifen"
}); });
} else { } else {
wx.showToast({ wx.showToast({


+ 8
- 0
pages/phoneinput/phoneinput.js 查看文件

@@ -45,6 +45,14 @@ Page({
} }
}) })
.then(res => { .then(res => {
/**
* 来自积分兑换
*/
if (that.data.path == 'jifen') {
wx.redirectTo({
url: `/pages/joinFrDpell/index?couponChannelId=${that.data.paramData.couponChannelId}`
})
}
/** /**
* 来自拼团详情 * 来自拼团详情
*/ */


+ 2
- 2
utils/creditType.js 查看文件

@@ -8,9 +8,9 @@ let creditType=[
{ name: "完善个人信息", value: "7" }, { name: "完善个人信息", value: "7" },
{ name: "积分导入", value: "8" }, { name: "积分导入", value: "8" },
{ name: "消费积分", value: "9" }, { name: "消费积分", value: "9" },
{ name: "消费积分", value: "10" },
{ name: "新增积分", value: "10" },
{ name: "积分兑换", value: "11" }, { name: "积分兑换", value: "11" },
{ name: "线下积分扣除", value: "12" },
{ name: "消费积分", value: "12" },
] ]
module.exports = { module.exports = {
creditType creditType

正在加载...
取消
保存