| | |
| | | <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> |
| | |
| | | </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){ |
| | |
| | | url: '/pages/staffLogin/login' |
| | | }) |
| | | }, |
| | | getTaskInfo() { |
| | | stagingHead({ |
| | | isDetail: '0' |
| | | }).then(res => { |
| | | this.taskNum = res.data.taskNum |
| | | }) |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | } |
| | | .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; |