From 6f44eb561c9a728e3ff4862554047abc31640ca7 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期六, 22 六月 2024 16:41:25 +0800
Subject: [PATCH] 修改手机号添加

---
 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