网格员账号登录跳转

This commit is contained in:
2025-12-16 17:40:00 +08:00
parent 4fbd32156d
commit 4ef77b2251
5 changed files with 50 additions and 12 deletions

View File

@@ -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 => {
}
}
// 跳转到素质测评