From 7df86b8163f3b9264e79b2e0d329aa7b343a1a32 Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 8 May 2023 09:55:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppMine/AppMine.vue | 35 +++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/project/qujing/AppMine/AppMine.vue b/src/project/qujing/AppMine/AppMine.vue index d46ffb8..ebd3509 100644 --- a/src/project/qujing/AppMine/AppMine.vue +++ b/src/project/qujing/AppMine/AppMine.vue @@ -35,6 +35,9 @@ +
+ +
@@ -149,7 +152,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() @@ -357,6 +375,21 @@ export default { margin-bottom: 0!important; } } + .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; + } + } }