| | |
| | | <view class="tool_item" @click="toWorkerRecord" v-if="isAdmin"> |
| | | <image src="@/static/image/record.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 打卡记录 |
| | | 工资审核 |
| | | </view> |
| | | </view> |
| | | <!-- <view class="tool_item" @click="toPage('/otherPages/member/sendCompany/sendCompany')"> |
| | | <image src="@/static/image/server.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_item" @click="toSalary"> |
| | | <image src="@/static/image/salary.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 服务中心 |
| | | 工资查询 |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }); |
| | | } |
| | | }, ], |
| | | navList1: [{ |
| | | navList2: [{ |
| | | icon: 'icon-wanshanxinxi', |
| | | name: '完善资料', |
| | | cb: function() { |
| | |
| | | cb: this.toMyRecord |
| | | }, |
| | | ], |
| | | token: this.$db.get('userToken')||'' |
| | | navList3: [{ |
| | | icon: 'icon-wanshanxinxi', |
| | | name: '修改资料', |
| | | cb: function() { |
| | | uni.navigateTo({ |
| | | url: '/pages/mine/apply' |
| | | }); |
| | | } |
| | | }, |
| | | { |
| | | icon: 'icon-dingdan', |
| | | name: '我的工作', |
| | | cb: this.toMyWork |
| | | }, |
| | | { |
| | | icon: 'icon-fuwutuandui', |
| | | name: '打卡记录', |
| | | cb: this.toMyRecord |
| | | }, |
| | | ], |
| | | token: this.$db.get('userToken') || '' |
| | | }; |
| | | }, |
| | | onLoad: function() { |
| | |
| | | ...mapGetters(['userInfo', 'identity']), |
| | | isAdmin() { |
| | | return this.userInfo.userCompany ? this.userInfo.userCompany.isAdmin : false |
| | | }, |
| | | navList1() { |
| | | return this.userInfo.userWorker ? this.navList3 : this.navList2 |
| | | }, |
| | | isLogin() { |
| | | return this.token ? true : false; |
| | |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/company/index' |
| | | }); |
| | | }, |
| | | toSalary() { |
| | | if (!this.userInfo.userCompany) { |
| | | uni.navigateTo({ |
| | | url: '/pages/enterprise/enterprise' |
| | | }); |
| | | this.$util.showToast({ |
| | | title: '请先完善企业资料!' |
| | | }) |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/worker/salary' |
| | | }); |
| | | }, |
| | | toMyWork() { |
| | |
| | | |
| | | .tool_content { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 30rpx 0; |
| | | |
| | | .tool_item { |
| | |
| | | flex-direction: column; |
| | | height: 120rpx; |
| | | justify-content: center; |
| | | margin: 0 50rpx 0 0; |
| | | // margin: 0 50rpx 0 0; |
| | | width: 120rpx; |
| | | |
| | | &:nth-child(4n) { |