jiangping
2024-06-07 73af3ed9fbcc616cdecc739fc4307163c19c5764
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;