修改顶部ui前备份
This commit is contained in:
@@ -456,7 +456,21 @@ Page({
|
||||
url: "../login/index"
|
||||
})
|
||||
return;
|
||||
}else{
|
||||
}
|
||||
if(that.data.fromHot != 1){
|
||||
|
||||
var userInfo = userInfodata ? JSON.parse(userInfodata) : null
|
||||
if(!userInfo || !userInfo.iLevel || parseInt(userInfo.iLevel) < 2){
|
||||
wx.showToast({
|
||||
title: "会员等级不够",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if(userId&&LoginId){
|
||||
var userInfo = userInfodata ? JSON.parse(userInfodata) : null;
|
||||
if(userInfo && userInfo.Phone==""&&userInfo.FHEnable4=="0"){
|
||||
ifdl=false;
|
||||
@@ -502,6 +516,22 @@ Page({
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
if(that.data.fromHot != 1){
|
||||
var userInfodata = wx.getStorageSync("userInfo")
|
||||
// console.log("fromHot:"+that.data.fromHot)
|
||||
|
||||
var userInfo = userInfodata ? JSON.parse(userInfodata) : null
|
||||
// console.log("iLevel:"+userInfodata)
|
||||
if(!userInfo || !userInfo.iLevel || parseInt(userInfo.iLevel) < 2){
|
||||
wx.showToast({
|
||||
title: "会员等级不够",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var t = e.currentTarget.dataset.id
|
||||
that.setData({
|
||||
@@ -543,6 +573,18 @@ Page({
|
||||
})
|
||||
return;
|
||||
}else{
|
||||
if(that.data.fromHot != 1){
|
||||
|
||||
var userInfo = userInfodata ? JSON.parse(userInfodata) : null
|
||||
if(!userInfo || !userInfo.iLevel || parseInt(userInfo.iLevel) < 2){
|
||||
wx.showToast({
|
||||
title: "会员等级不够",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
var userInfo = userInfodata ? JSON.parse(userInfodata) : null;
|
||||
if(userInfo && userInfo.Phone==""&&userInfo.FHEnable4=="0"){
|
||||
ifdl=false;
|
||||
|
||||
Reference in New Issue
Block a user