From 6ef869b1adcf3a5bb8e4c3117dc507d173f13fd8 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 18 九月 2024 15:19:55 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
---
h5/pages/staff/index.vue | 24 ++++++++++--------------
1 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index 5b07e1b..bc60368 100644
--- a/h5/pages/staff/index.vue
+++ b/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
})
},
}
--
Gitblit v1.9.3