重新登陆传参
This commit is contained in:
@@ -100,12 +100,18 @@ export const user = {
|
||||
return dispatch('autoLogin').then(() => dispatch('authCheck', { checkType, modulePath }));
|
||||
}
|
||||
if (!userInfo.areaId) {
|
||||
this.$dialog.confirm({
|
||||
return uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||
confirmText: '去认证'
|
||||
}).then(() => {
|
||||
uni.switchTab({ url: '/pages/AppMine/userInfo' })
|
||||
}).catch(() => {
|
||||
confirmText: '去认证',
|
||||
success: (res)=> {
|
||||
if (res.confirm) {
|
||||
// console.log('用户点击确定');
|
||||
uni.switchTab({ url: '/pages/AppMine/userInfo' })
|
||||
} else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user