346149741
2024-06-22 0a2589ad83ffe64d021b009e33f8ff93b27d8536
qiye/my/my.vue
@@ -8,26 +8,26 @@
            <image src="/static/policy/header.png" mode="widthFix"></image>
            <view class="user-info">
               <view class="user-name">
                  <view class="inckname">刘小雅</view>
                  <view class="inckname">{{msg.companyUser}}</view>
               </view>
               <view class="dept-name">
                  环保局--第一部门
                  {{msg.companyName}}
               </view>
            </view>
         </view>
         <view class="show-phone-number">
            <text class="label">联系电话</text>
            <text>168****4164</text>
            <text>{{msg.companyPhone}}</text>
         </view>
         <view class="wbox">
            <view class="item">
            <view class="item" @click="tousu()">
               <view class="set-flex">
                  <image src="/static/qiye/q06.png" mode="widthFix"></image>
                  <text class="change">投诉记录</text>
               </view>
               <u-icon name="arrow-right"></u-icon>
            </view>
            <view class="item">
            <view class="item" @click="goChangePhone()">
               <view class="set-flex">
                  <image src="/static/policy/phone.png" mode="widthFix"></image>
                  <text class="change">修改手机号</text>
@@ -50,7 +50,7 @@
         
      
      </view> -->
      <view class="logout">
      <view class="logout" @click="logout()">
         退出登录
      </view>
      <tabsCom :activeNumber.sync="activeNumber"></tabsCom>
@@ -68,15 +68,34 @@
      data() {
         return {
            activeNumber: 2,
            msg:uni.getStorageSync("qiyedata"),
            src: '/static/policy/header.png'
         }
      },
      methods: {
         goChangePhone() {
            uni.navigateTo({
               url: '/policy/changePhone/changePhone'
               url: '/policy/changePhone/changePhone?code=02'
            })
         },
         tousu(){
            uni.navigateTo({
               url: '/qiye/complaint/complaint'
            })
         },
         logout(){
            uni.showModal({
                 title: '提示',
                 content: '确认退出登录?',
                 success: res => {
                  if(res.confirm) {
                   uni.clearStorageSync()
                   uni.redirectTo({
                    url: '/pages/index/index'
                   })
                  }
                 }
                })
         }
      }
   }