| 
					
				 | 
			
			
				@@ -45,7 +45,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 头像用户名 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div class="d-flex align-center color-333" v-if="isLogin"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span class="cursor-pointer mr-5 commonHover" @click="handleSwitch">我要招聘</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span class="cursor-pointer mr-5 commonHover" v-if="showTeacherLogin" @click="handleSwitchTeacher">切换为老师</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span class="cursor-pointer mr-5 commonHover" v-else @click="handleSwitchEnterprise">我要招聘</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span class="cursor-pointer commonHover" @click="router.push({ path: paths[6] })"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 现金:{{ userAccount?.balance && userAccount?.balance > 0 ? (userAccount?.balance / 100.0).toFixed(2) : 0 }} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -138,6 +139,7 @@ import MessageNotification from '../message.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { getUserAvatar } from '@/utils/avatar' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import defineListPage from '@/views/entrances/navBar/components/defineListPage' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { formatName } from '@/utils/getText' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getSchoolInformation } from '@/api/school' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 defineOptions({ name: 'personal-navbar' }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,10 +155,23 @@ defineProps({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const showBall = ref(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const showTeacherLogin = ref(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 获取老师注册信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const schoolInfo = ref({}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const getSchoolInfo = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const data = await getSchoolInformation() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (data && Object.keys(data).length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    schoolInfo.value = data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    showTeacherLogin.value = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-onMounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+onMounted(async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (getToken()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     showBall.value = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    await getSchoolInfo() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -225,7 +240,7 @@ const show = ref(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const radios = ref(null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const enterpriseList = ref([]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 切换为招聘者 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const handleSwitch = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const handleSwitchEnterprise = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   await getApplyInfo() // 查询申请信息(注册进度) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const data = await getUserBindEnterpriseList() // 申请通过才有数据,否则空数组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   enterpriseList.value = data || [] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -267,6 +282,19 @@ const newRegistering = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   router.replace({ path }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 跳转老师页面 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const statusList = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  { status: '0', path: '/register/school/inReview', key: 'registerSchoolInfo' }, // 审核中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  { status: '1', path: '/recruit/teacher/studentList/index', key: 'schoolInfo' }, // 审核通过 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  { status: '2', path: '/register/school/inReview', key: 'registerSchoolInfo' }, // 审核不通过 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const handleSwitchTeacher = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const obj = statusList.find(item => item.status === schoolInfo.value?.authStatus) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (!obj || !schoolInfo.value) return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  localStorage.setItem(obj.key, JSON.stringify(schoolInfo.value)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  router.push({ path: obj.path }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const handleToPersonalCenter = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   router.push({ path: paths[5] }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |