zhouwenxuan
2023-11-15 f5d67b69142c78be1ee996f53b6bb8e4c954761c
pages/tabBar/current/current.vue
@@ -6,8 +6,11 @@
         <view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
         <!-- 真正的导航栏内容 -->
         <view class="navBar">
            <u-icon style=" margin-left: -25px;" name="arrow-left" color="black" size="17" @click="goBack" v-if="role!='工作人员'" />
            <u-icon style=" margin-left: 13px;" name="arrow-left" color="black" size="17" @click="goBack" v-if="role!='工作人员'" />
            <view class="barText">信息查看</view>
            <view >
               <u-button type="text" @click="loginOut" style="color: blue;margin-right: 5px;">退出</u-button>
            </view>
         </view>
      </view>
    <div v-if="loading" style='display: flex;justify-content: center;position: absolute;width:100%;top: 40%;left: 0'>
@@ -132,6 +135,13 @@
         this.getInfoList();
      },
      methods: {
         loginOut() {
            uni.clearStorageSync();
            uni.clearStorage();
            uni.navigateTo({
               url: '/pages/index/index'
            })
         },
         goBack() {
            uni.switchTab({
                url:'/pages/tabBar/firstPage/firstPage'
@@ -169,6 +179,7 @@
         },
         toDetail(item) {
            item.responsesRate = item.responsesRate.replace(/%/g, '%25');
            uni.setStorageSync('backFlag','current');
            uni.navigateTo({
              url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item))
            })