k94314517
2024-10-16 17efddc6a667670dca682bf36b51a43e99615e6d
h5/pages/staff/index.vue
@@ -64,7 +64,7 @@
        <view class="h1">任务中心</view>
        <view class="h2">TASK CENTER</view>
        <view class="task_num">{{
          taskInfo.noticeWaitNum + taskInfo.noticeCopyNum
         taskInfo
        }}</view>
      </view>
      <view class="img_wrap" @click="jump('/pages/staff/meetingCalendar')">
@@ -139,21 +139,17 @@
    // }
    this.getTaskInfo()
    // 刷新token
    // const token = uni.getStorageSync('token')
    // if (token) {
    //   refreshToken().then(res => {
    //     if (res.code && res.code === 200) {
    //       this.$store.commit('setToken', res.data)
    //       console.log('res', res.data);
    //       // setTimeout(() => {
    //       //   this.getTaskInfo()
    //       // }, 1000)
    //     }
    //   })
    // }
    setTimeout(() => {
      refreshToken().then(res => {
        if (res.code && res.code === 200) {
          this.$store.commit('setToken', res.data)
        }
      })
    }, 3000)
  },
  mounted() {
    this.$eventBus.$on('taskBack', () => {
      console.log('----');
      this.getTaskInfo()
    })
  },
@@ -174,7 +170,7 @@
      stagingHead({
        isDetail: '1'
      }).then(res => {
        this.taskInfo = res.data
        this.taskInfo = res.data.noticeWaitNum + res.data.noticeCopyNum
      })
    },
  }