checkType5 网格员

This commit is contained in:
liuye
2024-07-18 15:41:54 +08:00
parent 7952757394
commit 9138a1b1e9
9 changed files with 15 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ export const user = {
},
authCheck({state, dispatch, rootState}, {checkType, modulePath}) {
//用于进入应用的权限判断
//checkType 1、登录认证 2、居民认证 3、党员认证 4、丰都个人认证
//checkType 1、登录认证 2、居民认证 3、党员认证 4、丰都个人认证 5、网格员
//判断是否需要校验认证信息
let {user: userInfo, token} = rootState
if (!checkType) {
@@ -141,6 +141,11 @@ export const user = {
})
}
uni.navigateTo({url: modulePath});
} else if (checkType == 5) {
if (!userInfo.girdInfos2G.length) {
return uni.showToast({title: "您还不是网格员,暂时无法使用该功能", icon: "none"});
}
uni.navigateTo({url: modulePath});
}
}
}