From b5f084460e9e639358fbf91056a86be8d0a5c4b2 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 20:18:57 +0800
Subject: [PATCH] 获取验证码功能
---
policy/components/mine.vue | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/policy/components/mine.vue b/policy/components/mine.vue
index 1fab1b4..da1dd99 100644
--- a/policy/components/mine.vue
+++ b/policy/components/mine.vue
@@ -10,8 +10,8 @@
<view class="direc"></view>
<view class="dept-per">鎵ф硶浜哄憳</view>
</view>
- <view class="dept-name">
- {{userInfo.data.dept.parentName}}
+ <view class="dept-name u-line-1">
+ {{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'
+ })
+ }
+ }
})
}
}
@@ -82,6 +96,7 @@
.user-info{
margin-left: 24rpx;
color: white;
+ width: calc(100% - 108rpx);
.user-name{
display: flex;
justify-content: flex-start;
@@ -145,7 +160,7 @@
width: calc(100% - 64rpx);
left: 32rpx;
position: fixed;
- bottom: 180rpx;
+ bottom: 220rpx;
}
.inckname{
font-size: 36rpx;
--
Gitblit v1.9.1