Parcourir la source

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

tags/湖南版5.1.4
刘晖 il y a 6 ans
Parent
révision
b5464f347d
4 fichiers modifiés avec 20 ajouts et 4 suppressions
  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 Voir le fichier

@@ -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}`
})
}
/**
* 来自拼团详情
*/


+ 2
- 2
pages/integralmall/payIntegcoupondetail/index.js Voir le fichier

@@ -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({


+ 8
- 0
pages/phoneinput/phoneinput.js Voir le fichier

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


+ 2
- 2
utils/creditType.js Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer