diff --git a/src/components/utils/modules.js b/src/components/utils/modules.js index 1ea8efb..b793259 100644 --- a/src/components/utils/modules.js +++ b/src/components/utils/modules.js @@ -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('用户点击取消'); + } + } }) } } diff --git a/src/project/fengdu/AppMine/AppMine.vue b/src/project/fengdu/AppMine/AppMine.vue index 0c6e9aa..19b3a97 100644 --- a/src/project/fengdu/AppMine/AppMine.vue +++ b/src/project/fengdu/AppMine/AppMine.vue @@ -24,10 +24,10 @@ -