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 | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue index 054cca9..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,11 +94,10 @@ data() { return { userInfo: uni.getStorageSync('userInfo'), - taskNum: 0 + taskInfo: 0 } }, onLoad() { - console.log('userInfo', this.userInfo) }, onShow() { if (this.userInfo && this.userInfo.memberId) { @@ -120,9 +119,9 @@ }, getTaskInfo() { stagingHead({ - isDetail: '0' + isDetail: '1' }).then(res => { - this.taskNum = res.data.taskNum + this.taskInfo = res.data }) }, } -- Gitblit v1.9.3