马宇豪
2024-07-16 117da08d652db513d8889924ea12b13aed68fba2
pages/tabBar/response/response.vue
@@ -7,6 +7,9 @@
         <!-- 真正的导航栏内容 -->
         <view class="navBar">
            <view class="barText">叫应记录</view>
            <view >
               <u-button type="text" @click="loginOut" style="color: #1890ff;margin-right: 5px;width: 65px;">退出</u-button>
            </view>
         </view>
      </view>
    <div v-if="loading" style='display: flex;justify-content: center;position: absolute;width:100%;top: 40%;left: 0'>
@@ -70,8 +73,17 @@
         uni.hideTabBar();
      },
      methods: {
         loginOut() {
            uni.clearStorageSync();
            uni.clearStorage();
            uni.navigateTo({
               url: '/pages/index/index'
            })
         },
         getResponseList() {
        this.loading = true
            getResponse(this.data).then(res => {
               if (res.code === 100) {
                  let list = res.data ? res.data : [];
@@ -100,6 +112,8 @@
            getDetail({id: item.id}).then(res => {
          console.log("response",res)
               if(res.code == 100) {
                  uni.setStorageSync('fdetailData', res.data);
                  uni.setStorageSync('backFlag','response');
                  uni.navigateTo({
                    url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(res.data))
                  })
@@ -112,7 +126,7 @@
            setTimeout(() => {
               uni.stopPullDownRefresh();
               this.getResponseList();
            }, 1000);
            }, 2000);
         },
      upper: function(e) {
@@ -146,7 +160,7 @@
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.barText{
  /* margin-left: 20px; */
  margin-left: 55px;
  text-align: center;
  width: 85%;
  font-size: 16px;