From 5a85dcab83e969d6b21c599b512a15117e9b8651 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 04 七月 2024 08:54:30 +0800
Subject: [PATCH] ''
---
h5/pages/staff/index.vue | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index 341f9b3..888b8bd 100644
--- a/h5/pages/staff/index.vue
+++ b/h5/pages/staff/index.vue
@@ -63,7 +63,7 @@
<image class="img" src="@/static/staff/ic_renwuzhongxin.png"></image>
<view class="h1">浠诲姟涓績</view>
<view class="h2">TASK CENTER</view>
- <view class="task_num">{{ taskNum }}</view>
+ <view class="task_num">{{ taskInfo.noticeWaitNum + taskInfo.noticeCopyNum }}</view>
</view>
<view class="img_wrap" @click="jump('/pages/staff/meetingCalendar')">
<image class="img" src="@/static/staff/ic_wodehuiyi.png"></image>
@@ -94,17 +94,15 @@
data() {
return {
userInfo: uni.getStorageSync('userInfo'),
- taskNum: 0
+ taskInfo: 0
}
},
onLoad() {
- console.log('userInfo', this.userInfo)
-
},
onShow() {
- // if (this.userInfo && this.userInfo.name) {
+ if (this.userInfo && this.userInfo.memberId) {
this.getTaskInfo()
- // }
+ }
},
methods: {
jump(path) {
@@ -121,9 +119,9 @@
},
getTaskInfo() {
stagingHead({
- isDetail: '0'
+ isDetail: '1'
}).then(res => {
- this.taskNum = res.data.taskNum
+ this.taskInfo = res.data
})
},
}
--
Gitblit v1.9.3