From 244d89b41c0e0e995d38f635a126a0959b9ba25b Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 25 六月 2024 18:16:42 +0800 Subject: [PATCH] 问题处理 --- policy/components/mine.vue | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/policy/components/mine.vue b/policy/components/mine.vue index 587effb..f919002 100644 --- a/policy/components/mine.vue +++ b/policy/components/mine.vue @@ -31,7 +31,7 @@ <u-icon name="arrow-right"></u-icon> </view> </view> - <view class="logout"> + <view class="logout" @click="logOut"> 閫�鍑虹櫥褰� </view> </view> @@ -53,7 +53,21 @@ methods: { goChangePhone() { uni.navigateTo({ - url: '/policy/changePhone/changePhone' + url: `/policy/changePhone/changePhone?code=${this.userInfo.data.userType}` + }) + }, + logOut() { + uni.showModal({ + title: '鎻愮ず', + content: '纭閫�鍑虹櫥褰曪紵', + success: res => { + if(res.confirm) { + uni.clearStorageSync() + uni.redirectTo({ + url: '/pages/index/index' + }) + } + } }) } } @@ -145,7 +159,7 @@ width: calc(100% - 64rpx); left: 32rpx; position: fixed; - bottom: 180rpx; + bottom: 220rpx; } .inckname{ font-size: 36rpx; -- Gitblit v1.9.1