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 | 48 ++++++++++++++++++++++++++++++++++--------------
1 files changed, 34 insertions(+), 14 deletions(-)
diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index 90d5e31..aa3b76f 100644
--- a/h5/pages/staff/index.vue
+++ b/h5/pages/staff/index.vue
@@ -1,7 +1,7 @@
<template>
<view class="main_app">
<view class="title_wrap">
- <view class="name">鏌愭煇鏌愶紝娆㈣繋鐧诲綍锝�</view>
+ <view class="name">{{ userInfo.realname || '' }}锛屾杩庣櫥褰曪綖</view>
<view class="btn" @click="loginOut">閫�鍑虹櫥褰�</view>
</view>
<view class="banner_wrap">
@@ -48,19 +48,19 @@
<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/task/index')">
+ <view class="img_wrap" @click="jump('/pages/staff/meetingCalendar')">
<image class="img" src="@/static/staff/ic_wodehuiyi.png"></image>
<view class="h1">鎴戠殑浼氳鏃ュ巻</view>
<view class="h2">MY MEETING CALENDAR</view>
</view>
- <view class="img_wrap" @click="jump('/pages/staff/task/index')">
+ <view class="img_wrap" @click="jump('/pages/staff/vehicle/sendACar')">
<image class="img" src="@/static/staff/ic_paichejilu.png"></image>
<view class="h1">娲捐溅璁板綍</view>
<view class="h2">VEHICLE DISPATCH</view>
</view>
- <view class="img_wrap" @click="jump('/pages/staff/task/index')">
+ <view class="img_wrap" @click="jump('/pages/staff/meetingManager')">
<image class="img" src="@/static/staff/ic_huiyishiguanli.png"></image>
<view class="h1">浼氳瀹ょ鐞�</view>
<view class="h2">MANAGE MEETING ROOMS</view>
@@ -74,9 +74,20 @@
</template>
<script>
+import { logoutPost, stagingHead } from '@/api'
export default {
data() {
- return {};
+ return {
+ userInfo: uni.getStorageSync('userInfo'),
+ taskNum: 0
+ };
+ },
+ onLoad(){
+ console.log('userInfo', this.userInfo);
+
+ },
+ onShow() {
+ this.getTaskInfo()
},
methods: {
jump(path){
@@ -85,11 +96,19 @@
});
},
loginOut() {
- uni.clearStorageSync()
+ this.$store.commit('empty')
+ logoutPost()
uni.redirectTo({
- url: '/pages/login/login'
+ url: '/pages/staffLogin/login'
})
},
+ getTaskInfo() {
+ stagingHead({
+ isDetail: '0'
+ }).then(res => {
+ this.taskNum = res.data.taskNum
+ })
+ },
}
};
</script>
@@ -109,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;
@@ -203,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