<template>
	<view class="admin-jiazheng-page">
		<view class="icon-title-navBar-box">
			<view @click="goUpPage" class="nav-bar-icon"></view>
			<text class="nav-bar-title">家政人员</text>
		</view>
		<v-tabs v-model="current" :tabs="tabs" :scroll="false" @change="changeTab" class="admin-tab-box"></v-tabs>
		<gerenZiliao v-show="current ==0"></gerenZiliao>
		<qiuzhiXinxi v-show="current ==1"></qiuzhiXinxi>
		<zhaopianZiliao v-show="current ==2"></zhaopianZiliao>
		<banzhengXinxi v-show="current ==3"></banzhengXinxi>
	</view>
</template>

<script>
	import {
		ref
	} from "vue";
	import banzhengXinxi from './banzhengXinxi.vue';
	import qiuzhiXinxi from './qiuzhiXinxi.vue';
	import zhaopianZiliao from './zhaopianZiliao.vue';
	import gerenZiliao from './gerenZiliao.vue';
	export default {
		data() {
			return {
				current: 0,
				tabs: ['个人资料', '求职信息', '照片资料', '办证信息']
			}
		},
		components: {
			banzhengXinxi,
			qiuzhiXinxi,
			gerenZiliao,
			zhaopianZiliao,
		},
		methods: {
			changeTab(index) {
				console.log('当前选中的项：' + index)
			},
			goUpPage(){
				uni.redirectTo({
					url: `/pages/admin/Jiazheng/jiazhengUserInfo`
				})
			}
		}
	}
</script>
