From b46de49b14769a0d06d1cb02c57c36aa386a87c9 Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期六, 22 六月 2024 19:24:18 +0800 Subject: [PATCH] Merge branch 'master' of http://218.28.192.34:9999/r/sqys/sqys_xcx --- policy/components/mine.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/policy/components/mine.vue b/policy/components/mine.vue index 587effb..f7efe29 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' + }) + } + } }) } } -- Gitblit v1.9.1