重新登陆传参

This commit is contained in:
shijingjing
2023-03-20 17:21:22 +08:00
parent 7647f30a4c
commit 49d43d14e6
4 changed files with 21 additions and 13 deletions

View File

@@ -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('用户点击取消');
}
}
})
}
}