From 782f6328928f3b4485eedbfe77973a1bebe61ef1 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 17 Mar 2023 15:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppMine/AppMine.vue | 36 +++- src/project/fengdu/AppMine/userInfo.vue | 212 +++++++++++++++--------- src/project/qujing/AppMine/userInfo.vue | 6 +- 3 files changed, 175 insertions(+), 79 deletions(-) diff --git a/src/project/fengdu/AppMine/AppMine.vue b/src/project/fengdu/AppMine/AppMine.vue index cec0228..21108eb 100644 --- a/src/project/fengdu/AppMine/AppMine.vue +++ b/src/project/fengdu/AppMine/AppMine.vue @@ -46,6 +46,9 @@ +
+ 退出登录 +
@@ -157,7 +160,22 @@ export default { this.$nextTick(() => { this.token && this.getUserInfo() }) - } + }, + onLogout() { + uni.showModal({ + title: '提示', + content: "是否要退出登录", + success: res => { + if (res.confirm) { + this.$store.commit('logout') + this.$toast('退出成功'); + setTimeout(() => { + this.getAuth(); + }, 500) + } + } + }) + }, }, onShow() { this.getAuth(); @@ -354,6 +372,20 @@ export default { } } } - + .logout { + width: 100%; + height: 96px; + padding: 0 32px; + box-sizing: border-box; + line-height: 96px; + text-align: center; + .login-out { + background: #FFF; + border-radius: 16px; + font-size: 34px; + font-weight: 500; + color: #4181FF; + } + } } diff --git a/src/project/fengdu/AppMine/userInfo.vue b/src/project/fengdu/AppMine/userInfo.vue index 79ebe2a..43cb355 100644 --- a/src/project/fengdu/AppMine/userInfo.vue +++ b/src/project/fengdu/AppMine/userInfo.vue @@ -1,35 +1,70 @@