From 8e7223747438eb874ecf46988a72851ccdb58287 Mon Sep 17 00:00:00 2001
From: 346149741 <346149741@qq.com>
Date: 星期六, 22 六月 2024 17:12:59 +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