From ade1aa658df84e8b52f5d1dfa9d2971da5cdad55 Mon Sep 17 00:00:00 2001
From: 346149741 <346149741@qq.com>
Date: 星期六, 22 六月 2024 20:38:03 +0800
Subject: [PATCH] 投诉详情

---
 policy/components/mine.vue |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/policy/components/mine.vue b/policy/components/mine.vue
index 1fab1b4..f7efe29 100644
--- a/policy/components/mine.vue
+++ b/policy/components/mine.vue
@@ -11,7 +11,7 @@
 						<view class="dept-per">鎵ф硶浜哄憳</view>
 					</view>
 					<view class="dept-name">
-						{{userInfo.data.dept.parentName}}
+						{{userInfo.data.dept.deptName}}
 					</view>
 				</view>
 			</view>
@@ -19,7 +19,7 @@
 		<view class="main-box">
 			<view class="show-phone-number">
 				<text class="label">鑱旂郴鐢佃瘽</text>
-				<text v-if="userInfo.phonenumber">{{userInfo.data.phonenumber.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2")}}</text>
+				<text v-if="userInfo.data.phonenumber">{{userInfo.data.phonenumber.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2")}}</text>
 				<text v-else>鏆傛棤鎵嬫満鍙�</text>
 			</view>
 			<view class="show-phone-number" @click="goChangePhone">
@@ -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