From 73af3ed9fbcc616cdecc739fc4307163c19c5764 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 07 六月 2024 14:35:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 h5/pages/staff/index.vue |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index cdde5d3..dedc392 100644
--- a/h5/pages/staff/index.vue
+++ b/h5/pages/staff/index.vue
@@ -48,7 +48,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">99+</view>
+				<view class="task_num">{{ taskNum }}</view>
 			</view>
 			<view class="img_wrap" @click="jump('/pages/staff/meetingCalendar')">
 				<image class="img" src="@/static/staff/ic_wodehuiyi.png"></image>
@@ -74,15 +74,17 @@
 </template>
 
 <script>
-import { logoutPost } from '@/api'
+import { logoutPost, stagingHead } from '@/api'
 export default {
 	data() {
 		return {
-			userInfo: uni.getStorageSync('userInfo')
+			userInfo: uni.getStorageSync('userInfo'),
+			taskNum: 0
 		};
 	},
 	onLoad(){
 		console.log('userInfo', this.userInfo);
+		this.getTaskInfo()
 	},
 	methods: {
 		jump(path){
@@ -97,6 +99,13 @@
 				url: '/pages/staffLogin/login'
 			})
 		},
+		getTaskInfo() {
+      stagingHead({
+        isDetail: '0'
+      }).then(res => {
+        this.taskNum = res.data.taskNum
+      })
+    },
 	}
 };
 </script>
@@ -210,11 +219,12 @@
 		}
 		.task_num{
 			position: absolute;
-			left: 164rpx;
-			top: 20rpx;
-			width: 60rpx;
-			height: 48rpx;
+			left: 168rpx;
+			top: 26rpx;
+			width: 52rpx;
+			height: 52rpx;
 			border-radius: 50%;
+			/* border: 1px solid; */
 			background-color: #fff;
 			color: #db534c;
 			display: flex;

--
Gitblit v1.9.3