wjt
2024-06-25 244d89b41c0e0e995d38f635a126a0959b9ba25b
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'
                     })
                  }
               }
            })
         }
      }
@@ -145,7 +159,7 @@
         width: calc(100% - 64rpx);
         left: 32rpx;
         position: fixed;
         bottom: 180rpx;
         bottom: 220rpx;
      }
      .inckname{
         font-size: 36rpx;