|  | @@ -38,14 +38,13 @@
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  |          <div class="d-flex" style="height: 50px;">
 | 
	
		
			
				|  |  |            <div class="btns d-flex align-center" v-if="!isLogin && showLoginBtn">
 | 
	
		
			
				|  |  | -            <v-btn color="primary" style="color: #fff !important; background-color: #00B760;" @click="handleLogin">
 | 
	
		
			
				|  |  | -              {{ route.path === '/flame' ? '老师登录/注册' : '登录/注册' }}
 | 
	
		
			
				|  |  | -            </v-btn>
 | 
	
		
			
				|  |  | +            <v-btn color="primary" style="color: #fff !important; background-color: #00B760;" to="/login">{{ t('login.loginOrRegister') }}</v-btn>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |            
 | 
	
		
			
				|  |  |            <!-- 头像用户名 -->
 | 
	
		
			
				|  |  |            <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 +137,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 +153,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 +238,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 +280,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] })
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -305,11 +331,6 @@ userStore.$subscribe((mutation, state) => {
 | 
	
		
			
				|  |  |    updatePage()
 | 
	
		
			
				|  |  |  })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const handleLogin = () => {
 | 
	
		
			
				|  |  | -  const path = route.path === '/flame' ? '/flameLogin' : '/login'
 | 
	
		
			
				|  |  | -  router.push(path)
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  // 语言切换
 | 
	
		
			
				|  |  |  // const handleChangeLocale = (item) => {
 | 
	
		
			
				|  |  |  //   localeStore.setCurrentLocale(item)
 |