|
@@ -3,68 +3,46 @@
|
|
<v-toolbar
|
|
<v-toolbar
|
|
class="banner"
|
|
class="banner"
|
|
density="compact"
|
|
density="compact"
|
|
- style="padding-left: 0px;height: 50px;font-size: 15px;"
|
|
|
|
>
|
|
>
|
|
- <div class="innerBox d-flex justify-space-between" style="min-width: 1240px;">
|
|
|
|
- <div>
|
|
|
|
- <div class="nav-logo mr-3 mt-1 cursor-pointer d-flex align-center" @click="router.push('/recruitHome')">
|
|
|
|
- <v-img src="../../assets/logo.png" aspect-ratio="16/9" contain :width="97" style="height: 40px"></v-img>
|
|
|
|
- <span class="ml-2" style="margin-top: 6px;" :class="{'active-route' : route.path === '/recruitHome'}">首页</span>
|
|
|
|
- </div>
|
|
|
|
- <!-- <div class="nav-city">
|
|
|
|
- <p class="nav-city-box">
|
|
|
|
- <v-icon color="primary">mdi-map-marker</v-icon>
|
|
|
|
- <span class="nav-city-selected">广州</span>
|
|
|
|
- <span class="switchover-city nav-city-selected">[{{ $t('sys.switchCities') }}]</span>
|
|
|
|
- </p>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ <div class="innerBox d-flex align-center">
|
|
|
|
+ <div class="nav-logo" @click="router.push('/recruitHome')">
|
|
|
|
+ <v-img src="../../assets/logo.png" aspect-ratio="16/9" contain width="90" height="35"></v-img>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="menuList">
|
|
|
|
- <div v-for="val in navList" :key="val.name" class="mr-3">
|
|
|
|
- <template v-if="val.children">
|
|
|
|
- <defineListPage v-bind="$attrs" :title="val.title" :list="val.children" @emitClick="handleClick" :closeOnContentClick="true"></defineListPage>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <span
|
|
|
|
- class="cursor-pointer menuList-first-title"
|
|
|
|
- :class="{'active-route': menuActive(val)}"
|
|
|
|
- @click.stop="handleClick(val, true)">
|
|
|
|
- {{ val.title }}
|
|
|
|
- </span>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="menuList default-width">
|
|
|
|
+ <div v-for="val in navList" :key="val.name" :class="{'active-route': menuActive(val)}">
|
|
|
|
+ <template v-if="val.children">
|
|
|
|
+ <defineListPage v-bind="$attrs" :title="val.title" :list="val.children" @emitClick="handleClick" :closeOnContentClick="true"></defineListPage>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <span
|
|
|
|
+ class="cursor-pointer menuList-first-title"
|
|
|
|
+ @click.stop="handleClick(val, val.title === '首页' ? false : true)">
|
|
|
|
+ {{ val.title }}
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="d-flex" style="height: 50px;">
|
|
|
|
|
|
+ <div class="d-flex align-center position-absolute" style="right: 30px;">
|
|
<div class="btns d-flex align-center" v-if="!isLogin && showLoginBtn">
|
|
<div class="btns d-flex align-center" v-if="!isLogin && showLoginBtn">
|
|
<v-btn color="primary" style="color: #fff !important; background-color: #00B760;" to="/login">{{ t('login.loginOrRegister') }}</v-btn>
|
|
<v-btn color="primary" style="color: #fff !important; background-color: #00B760;" to="/login">{{ t('login.loginOrRegister') }}</v-btn>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 头像用户名 -->
|
|
<!-- 头像用户名 -->
|
|
<div class="d-flex align-center color-333" v-if="isLogin">
|
|
<div class="d-flex align-center color-333" v-if="isLogin">
|
|
- <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 }}
|
|
|
|
- <span style="color: #00000000;">1</span>
|
|
|
|
- 积分:{{ userAccount?.point || 0 }}
|
|
|
|
- </span>
|
|
|
|
- </span>
|
|
|
|
-
|
|
|
|
<v-menu open-on-hover>
|
|
<v-menu open-on-hover>
|
|
<template v-slot:activator="{ props }">
|
|
<template v-slot:activator="{ props }">
|
|
- <div class="d-flex ml-8 align-center cursor-pointer" :class="{'active-route': route.path.includes('/recruit/personal/personalCenter'), 'vipBox': vip}" v-bind="props" @click="handleToPersonalCenter">
|
|
|
|
- <div style="position: relative;">
|
|
|
|
|
|
+ <div class="d-flex align-center cursor-pointer px-4" :class="{'active-route': route.path.includes('/recruit/personal/personalCenter'), 'vipBox': vip}" v-bind="props" @click="handleToPersonalCenter">
|
|
|
|
+ <div class="position-relative d-flex align-center">
|
|
<v-avatar class="avatar">
|
|
<v-avatar class="avatar">
|
|
<v-img alt="" :src="getUserAvatar(baseInfo?.avatar, baseInfo?.sex)" ></v-img>
|
|
<v-img alt="" :src="getUserAvatar(baseInfo?.avatar, baseInfo?.sex)" ></v-img>
|
|
</v-avatar>
|
|
</v-avatar>
|
|
- <div v-if="vip" style="position: absolute; left: -9px; bottom: -3px;" @click.stop="router.push('/recruit/personal/personalCenter/memberBenefits/membershipPackage')">
|
|
|
|
|
|
+ <div v-if="vip" style="position: absolute; right: -9px; bottom: -13px;" @click.stop="router.push('/recruit/personal/personalCenter/memberBenefits/membershipPackage')">
|
|
<svg-icon name="huangguan1" size="25"></svg-icon>
|
|
<svg-icon name="huangguan1" size="25"></svg-icon>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="ml-3 userName">
|
|
|
|
|
|
+ <div class="ml-3 font-size-15 userName">
|
|
{{ baseInfo?.name || userInfo.phone }}
|
|
{{ baseInfo?.name || userInfo.phone }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -79,6 +57,27 @@
|
|
</v-list-item>
|
|
</v-list-item>
|
|
</v-list>
|
|
</v-list>
|
|
</v-menu>
|
|
</v-menu>
|
|
|
|
+
|
|
|
|
+ <v-chip
|
|
|
|
+ class="mx-4 cursor-pointer"
|
|
|
|
+ color="#008bb7"
|
|
|
|
+ label
|
|
|
|
+ size="small"
|
|
|
|
+ @click="router.push({ path: paths[6] })"
|
|
|
|
+ >
|
|
|
|
+ 积分
|
|
|
|
+ <strong class="ml-3">{{ userAccount?.point || 0 }}</strong>
|
|
|
|
+ </v-chip>
|
|
|
|
+ <v-chip
|
|
|
|
+ color="primary"
|
|
|
|
+ class="cursor-pointer"
|
|
|
|
+ label
|
|
|
|
+ size="small"
|
|
|
|
+ @click="router.push({ path: paths[6] })"
|
|
|
|
+ >
|
|
|
|
+ 现金
|
|
|
|
+ <strong class="ml-3">{{ userAccount?.balance && userAccount?.balance > 0 ? (userAccount?.balance / 100.0).toFixed(2) : 0 }}</strong>
|
|
|
|
+ </v-chip>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 语言切换 -->
|
|
<!-- 语言切换 -->
|
|
@@ -105,8 +104,12 @@
|
|
</v-list-item>
|
|
</v-list-item>
|
|
</v-list>
|
|
</v-list>
|
|
</v-menu> -->
|
|
</v-menu> -->
|
|
- <div class="d-flex align-center ml-3" v-if="showBall">
|
|
|
|
- <message-notification v-if="showBall" :path="paths[3]" class="commonHover2" :class="{'active-route': routeActive === 3}"></message-notification>
|
|
|
|
|
|
+ <div class="d-flex align-center ml-4" v-if="showBall">
|
|
|
|
+ <message-notification v-if="showBall" :path="paths[3]"></message-notification>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="isLogin" class="d-flex align-center ml-6 cursor-pointer">
|
|
|
|
+ <v-chip v-if="showTeacherLogin" label size="small" color="primary" variant="flat" @click="handleSwitchTeacher">切换为老师</v-chip>
|
|
|
|
+ <v-chip v-else label color="primary" size="small" variant="flat" @click="handleSwitchEnterprise">我要招聘</v-chip>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -189,6 +192,7 @@ const paths = [ // 有选中样式-路由列表
|
|
]
|
|
]
|
|
|
|
|
|
const navList = ref([
|
|
const navList = ref([
|
|
|
|
+ { title: '首页', path: '/recruitHome' },
|
|
{ title: '门墩儿招聘', path: '/recruit/personal/recommend', dealActive: true },
|
|
{ title: '门墩儿招聘', path: '/recruit/personal/recommend', dealActive: true },
|
|
{ title: '门墩儿猎头', path: '/headhunting' },
|
|
{ title: '门墩儿猎头', path: '/headhunting' },
|
|
{ title: '门墩儿商城', path: '/pointsExchange', isEdit: true },
|
|
{ title: '门墩儿商城', path: '/pointsExchange', isEdit: true },
|
|
@@ -209,11 +213,6 @@ const handleClick = (e, status) => {
|
|
else router.push(e.path)
|
|
else router.push(e.path)
|
|
}
|
|
}
|
|
|
|
|
|
-const routeActive = computed(() => {
|
|
|
|
- const index = paths.findIndex(item => item === route.path)
|
|
|
|
- return index
|
|
|
|
-})
|
|
|
|
-
|
|
|
|
// 左侧菜单选中状态
|
|
// 左侧菜单选中状态
|
|
const position = [
|
|
const position = [
|
|
'/recruit/personal/recommend',
|
|
'/recruit/personal/recommend',
|