346149741
2024-06-22 8e7223747438eb874ecf46988a72851ccdb58287
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'
                     })
                  }
               }
            })
         }
      }