From 93d3baec6ca8eff4738c5516100d82e0eef61abf Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 18 Oct 2023 11:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/myinformation/myinformation.vue | 37 --------------------------- 1 file changed, 37 deletions(-) diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 1fc8fb8..bfd11e9 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -295,43 +295,6 @@ }) this.showhome = false }, - remove() { - let that = this - const value = uni.getStorageSync('patientId'); - if (value) { - uni.showModal({ - title: '提示', - content: '确认要退出此账号吗', - success: function(res) { - if (res.confirm) { - uni.clearStorageSync(); - that.$refs.uToast.show({ - title: '退出账号成功', - type: 'success', - duration: '1000' - }) - createMobileToken().then(res => { - uni.setStorageSync("token", res.data.token) - }) - if (that.timer) { - clearTimeout(that.timer) - } - that.timer = setTimeout(e => { - uni.switchTab({ - url: '/pages/homepage/homepage' - }) - }, 1000) - } - } - }); - } else { - that.$refs.uToast.show({ - title: '您未登录,请先登录', - type: 'error', - duration: '1000' - }) - } - }, removes() { this.appPersonallist = null // uni.removeStorageSync('patientId');