网格员账号登录跳转
This commit is contained in:
@@ -1099,10 +1099,20 @@ import storeRc from '@/utilsRc/store/index.js';
|
||||
function goRc(){
|
||||
if (checkLogin()) {
|
||||
let userInfo = uni.getStorageSync('userInfo')
|
||||
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
|
||||
// console.log(res, "'res");
|
||||
navTo('/packageRc/pages/index/index');
|
||||
});
|
||||
if(userInfo.isCompanyUser == 2){
|
||||
storeRc.dispatch('LoginByID', userInfo.userId).then(res => {
|
||||
storeRc.dispatch('GetInfo').then(res => {
|
||||
navTo('/packageRc/pages/daiban/daiban');
|
||||
});
|
||||
});
|
||||
}else if(userInfo.isCompanyUser == 1){
|
||||
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
|
||||
navTo('/packageRc/pages/index/index');
|
||||
})
|
||||
}else{
|
||||
showToast('企业账号无法查看此模块~');
|
||||
}
|
||||
// storeRc.dispatch('LoginByID', userInfo.userId).then(res => {
|
||||
}
|
||||
}
|
||||
// 跳转到素质测评
|
||||
|
||||
Reference in New Issue
Block a user