This commit is contained in:
chenrx
2024-06-06 18:04:04 +08:00
parent 2c99487a4e
commit c7e7ec4904
+7 -7
View File
@@ -14,22 +14,22 @@ Page({
},
onLoad: function (options) {
},
onShow: function () {
let ukey = app.getStorageByKey("ukey");
if (!!ukey&&!!app.getStorageByKey("userInfo")){
if(app.getStorageByKey("userInfo").biz_type==4){
wx.navigateTo({
wx.reLaunch({
url: '/pages/allot/index',
})
}else if(app.getStorageByKey("userInfo").group_id==4){
wx.navigateTo({
wx.reLaunch({
url: '/pages/channel/index',
})
}else{
wx.navigateTo({
wx.reLaunch({
url: '/pages/index/index',
})
}
@@ -115,15 +115,15 @@ Page({
setTimeout(function () {
_.apiQuery.getUserInfo().then(res => {
if(res.biz_type==4){
wx.navigateTo({
wx.reLaunch({
url: '/pages/allot/index',
})
}else if(res.group_id==4){
wx.navigateTo({
wx.reLaunch({
url: '/pages/channel/index',
})
}else{
wx.navigateTo({
wx.reLaunch({
url: '/pages/index/index',
})
}