<template>
  <view class="admin-shouye-page">
	  <view>家政公司名称</view>
	  <view class="index-tj-box">
		  <view>
			  <text>本周</text>
			  <text>本月</text>
			  <text>本年</text>
		  </view>
		  <view>0/0</view>
		  <view>考证人员/家政人员</view>
	  </view>
	  <view class="index-tongzhi-box">
		  <text class="tongzhi-num">6</text>
		  <text></text>
		  <icon></icon>
	  </view>
	  <view class="card-list-box">
		 <view class="card-list-title">管理家政人员</view>
		 <view @click="goToPage('jz')" class="card-item-box">
		 	<icon></icon>
		 	<text>家政人员</text>
		 </view> 
	  </view>
	  <view class="card-list-box">  
		<view class="card-list-title">管理考证人员</view>
		<view @click="goToPage('kz')" class="card-item-box">
			<icon></icon>
			<text>考证管理</text>
		</view>
		<view @click="goToPage('ks')" class="card-item-box">
			<icon></icon>
			<text>考试管理</text>
		</view>
		<view @click="goToPage('cj')" class="card-item-box">
			<icon></icon>
			<text>成绩管理</text>
		</view>
		<view @click="goToPage('lc')" class="card-item-box">
			<icon></icon>
			<text>练习管理</text>
		</view>
		<view @click="goToPage('kc')" class="card-item-box">
			<icon></icon>
			<text>课程管理</text>
		</view>
	</view>	
	<!-- 页面底端 -->
	<customTabbarAdminVue :current-tab="0"></customTabbarAdminVue>
  </view>
</template>

<script setup>
import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
// 获取用户头像
	function goToPage(data){
		switch (data) {
		    case 'jz':
		        uni.redirectTo({
		        	url:'/pages/admin/Jiazheng/index'
		        })
		        break;
		    case 'kz':
		        uni.redirectTo({
		        	url:'/pages/admin/Jiazheng/index'
		        })
		        break;
		    case 'ks':
		        uni.redirectTo({
		        	url:'/pages/admin/Kaoshi/exam'
		        })
		        break;
			case 'cj':
			    uni.redirectTo({
			    	url:'/pages/client/Chengji/lxScoreShijuan'
			    })
			    break;
			case 'kc':
			    uni.redirectTo({
			    	url:'/pages/admin/Kecheng/list'
			    })
			    break;
		}
	}
</script>

