From 1a0490e981ab648f4e2a536dff306e2ba8b24311 Mon Sep 17 00:00:00 2001 From: shidongli Date: Tue, 24 Oct 2023 17:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/myinformation/myinformation.vue | 49 ++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index f53d2a5..63a4cf4 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -3,7 +3,7 @@ - + 个人信息 @@ -11,7 +11,7 @@ - + 修改手机号 @@ -19,7 +19,7 @@ - + 修改密码 @@ -43,6 +43,14 @@ + + + 退出账号 + + + + + @@ -82,9 +90,18 @@ + + + 退出账号 + + + + + + @@ -141,6 +158,30 @@ url: '/pages/ServiceSchedule/ServiceSchedule' }) }, + // 退出登录 + remove() { + let that = this + uni.showModal({ + title: '提示', + content: '确认要退出此账号吗', + success: function(res) { + if (res.confirm) { + uni.clearStorageSync(); + that.$refs.uToast.show({ + title: '退出账号成功', + type: 'success', + duration: '1000' + }) + setTimeout(e => { + uni.reLaunch({ + url: '/pages/login/login' + }) + }, 1000) + } + } + }); + + }, @@ -367,4 +408,4 @@ } } } - \ No newline at end of file +