-
zhangwei
2024-12-31 d0fd00436448dd7b82031f840e22d9e6aecb6053
src/pages/mine/index.vue
@@ -1,6 +1,6 @@
<template>
   <view class="container">
      <view class="header">
      <view :class="identity=='enterprise'?'header-hide':'header'">
         <view class="header-img">
            <view class="header-image-left" @click='tologin'>
               <up-avatar :src="userInfo.avatar" shape="circle" size='60'></up-avatar>
@@ -12,7 +12,7 @@
               <text class='iconfont icon-qiehuan chuany-font28'></text>
            </view>
         </view>
         <view class="num-box">
         <view class="num-box" v-if="identity!=='enterprise'">
            <view @tap="goWallet" class="num-item" data-ptpid="ef57-17f4-bbea-280f">
               <view class="num-bold">{{ balance }}元</view>
               <view class="num-text">
@@ -52,7 +52,7 @@
                     工资审核
                  </view>
               </view>
               <view class="tool_item" @click="toSalary">
               <view class="tool_item" @click="toSalary" v-if="isAdmin">
                  <image src="@/static/image/salary.png" mode="aspectFit" class="item_img"></image>
                  <view class="tool_label">
                     工资查询
@@ -133,7 +133,18 @@
                  });
               }
            }, ],
            navList2: [{
            navList2: [
               {
                  icon: 'icon-dingdan',
                  name: '上班打卡',
                  cb: this.toMyWork
               },
               {
                  icon: 'icon-fuwutuandui',
                  name: '工作记录',
                  cb: this.toMyRecord
               },
               {
                  icon: 'icon-wanshanxinxi',
                  name: '完善资料',
                  cb: function() {
@@ -142,18 +153,19 @@
                     });
                  }
               },
            ],
            navList3: [
               {
                  icon: 'icon-dingdan',
                  name: '我的工作',
                  name: '上班打卡',
                  cb: this.toMyWork
               },
               {
                  icon: 'icon-fuwutuandui',
                  name: '打卡记录',
                  name: '工作记录',
                  cb: this.toMyRecord
               },
            ],
            navList3: [{
               {
                  icon: 'icon-wanshanxinxi',
                  name: '修改资料',
                  cb: function() {
@@ -161,16 +173,6 @@
                        url: '/pages/mine/apply'
                     });
                  }
               },
               {
                  icon: 'icon-dingdan',
                  name: '我的工作',
                  cb: this.toMyWork
               },
               {
                  icon: 'icon-fuwutuandui',
                  name: '打卡记录',
                  cb: this.toMyRecord
               },
            ],
            token: this.$db.get('userToken') || ''