zhouwenxuan
2023-11-15 f5d67b69142c78be1ee996f53b6bb8e4c954761c
pages/tabBar/information/information.vue
@@ -7,6 +7,9 @@
         <!-- 真正的导航栏内容 -->
         <view class="navBar" >
            <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'>
@@ -94,6 +97,13 @@
         this.getInformationList();
      },
      methods: {
         loginOut() {
            uni.clearStorageSync();
            uni.clearStorage();
            uni.navigateTo({
               url: '/pages/index/index'
            })
         },
         getInformationList() {
        this.loading = true
            this.data.searchParams.reviewStatus = this.isReadOnly ? 2 : null;
@@ -127,6 +137,7 @@
         },
         toDetail(item) {
            console.log("item",item)
            uni.setStorageSync('backFlag','info');
            uni.navigateTo({
              url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item))
            })