From c3c67ee9e88c579e8ac784821ab41f58d0372ebb Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 11 六月 2024 15:46:34 +0800
Subject: [PATCH] 最新版本

---
 h5/pages/staff/index.vue |   31 ++++++++++++++++++++++---------
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index e92bb5a..aa3b76f 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,20 @@
 </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);
+		
+	},
+	onShow() {
+		this.getTaskInfo()
 	},
 	methods: {
 		jump(path){
@@ -97,6 +102,13 @@
 				url: '/pages/staffLogin/login'
 			})
 		},
+		getTaskInfo() {
+      stagingHead({
+        isDetail: '0'
+      }).then(res => {
+        this.taskNum = res.data.taskNum
+      })
+    },
 	}
 };
 </script>
@@ -116,9 +128,9 @@
 		width: 144rpx;
 		height: 56rpx;
 		border-radius: 36rpx;
-		border: 1rpx solid #279baa;
+		border: 1rpx solid $uni-color-primary;
 		font-size: 26rpx;
-		color: #279baa;
+		color: $uni-color-primary;
 		display: flex;
 		justify-content: center;
 		align-items: center;
@@ -210,11 +222,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