Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2023-03-20 16:56:32 +08:00
9 changed files with 134 additions and 42 deletions

View File

@@ -70,6 +70,7 @@ export const user = {
//checkType 1、登录认证 2、居民认证 3、党员认证
//判断是否需要校验认证信息
let {user: userInfo, token} = rootState
console.log();
if (!checkType) {
//如果需要校验认证信息,必定要先验证是否登录
uni.navigateTo({url: modulePath});
@@ -94,6 +95,19 @@ export const user = {
return uni.showToast({title: "您还不是党员,暂时无法使用该功能", icon: "none"});
}
uni.navigateTo({url: modulePath});
} else if (checkType == 4) {
if (!token) {
return dispatch('autoLogin').then(() => dispatch('authCheck', { checkType, modulePath }));
}
if (!userInfo.areaId) {
this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
}).then(() => {
uni.switchTab({ url: '/pages/AppMine/userInfo' })
}).catch(() => {
})
}
}
}
}