|
@@ -58,7 +58,7 @@ Page({
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- channIdState:false, // 判断渠道是否登陆了,默认没有登陆
|
|
|
+ channelName:null, // 判断渠道是否登陆了,默认没有登陆
|
|
|
},
|
|
|
|
|
|
onLoad: function () {
|
|
@@ -122,14 +122,12 @@ Page({
|
|
|
// getApp().getUserRole(un_id);//获取用户角色
|
|
|
// userRole = getApp().globalData.userRole;
|
|
|
// }
|
|
|
- console.log(wx.getStorageSync('channelIdObj'),"ffffff")
|
|
|
that.setData({
|
|
|
userInfo: userInfo,
|
|
|
userId: un_id,
|
|
|
userRole: userRole,
|
|
|
- channIdState: wx.getStorageSync('channelIdObj').channelAccountId ? true : false
|
|
|
+ channelName: wx.getStorageSync('channelName') ? wx.getStorageSync('channelName') : null
|
|
|
})
|
|
|
- console.log(that.data.channIdState)
|
|
|
},
|
|
|
orderList(e){
|
|
|
console.log(e,"orderList")
|
|
@@ -173,8 +171,9 @@ Page({
|
|
|
outChann(){ // 退出渠道
|
|
|
wx.removeStorageSync('channelIdObj');
|
|
|
this.setData({
|
|
|
- channIdState:false
|
|
|
+ channelName:null
|
|
|
})
|
|
|
+ wx.removeStorageSync('channelName')
|
|
|
},
|
|
|
channelInfo(){
|
|
|
if (wx.getStorageSync('channelIdObj').channelAccountId){
|