From 49d43d14e64fa7f5b195e2452623bb2a90dff4a2 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 20 Mar 2023 17:21:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=99=BB=E9=99=86=E4=BC=A0?= =?UTF-8?q?=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/utils/modules.js | 16 +++++++++++----- src/project/fengdu/AppMine/AppMine.vue | 13 +++++++------ src/project/fengdu/AppMine/userInfo.vue | 3 ++- .../fengdu/AppWxworkQrcode/AppWxworkQrcode.vue | 2 +- 4 files changed, 21 insertions(+), 13 deletions(-) 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 @@ -