|
|
|
|
@ -5,56 +5,47 @@
|
|
|
|
|
<div class="w">
|
|
|
|
|
<span class="titlelogo">
|
|
|
|
|
<!-- <i class="iconfont icon-yigezhuanmenfuwudailidepingtai"></i> -->
|
|
|
|
|
<router-link to="/main"
|
|
|
|
|
><svg class="icon" aria-hidden="true">
|
|
|
|
|
<use xlink:href="#icon-yishoudanlogo"></use></svg
|
|
|
|
|
></router-link>
|
|
|
|
|
<router-link to="/main">
|
|
|
|
|
<svg class="icon" aria-hidden="true">
|
|
|
|
|
<use xlink:href="#icon-yishoudanlogo" />
|
|
|
|
|
</svg>
|
|
|
|
|
</router-link>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="navigationleft">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/"
|
|
|
|
|
:class="routertitleindex === 0 ? 'titleactive' : ''"
|
|
|
|
|
>
|
|
|
|
|
首页</router-link
|
|
|
|
|
>
|
|
|
|
|
<router-link to="/" :class="routertitleindex === 0 ? 'titleactive' : ''">首页</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/userinfo/usercenter"
|
|
|
|
|
:class="routertitleindex === 1 ? 'titleactive' : ''"
|
|
|
|
|
>个人中心</router-link
|
|
|
|
|
>
|
|
|
|
|
<router-link to="/userinfo/usercenter" :class="routertitleindex === 1 ? 'titleactive' : ''">个人中心</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/userinfo/accountsetting/loginpsw"
|
|
|
|
|
:class="routertitleindex === 2 ? 'titleactive' : ''"
|
|
|
|
|
>账号设置
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/userinfo/accountsetting/loginpsw" :class="routertitleindex === 2 ? 'titleactive' : ''">账号设置</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="login">
|
|
|
|
|
<span v-if="isLogin">
|
|
|
|
|
<a-dropdown overlayClassName="logindropdown">
|
|
|
|
|
<span><i class="iconfont icon-morentouxiang"></i></span>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-morentouxiang"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="loginbox" slot="overlay">
|
|
|
|
|
<div>{{ loginValue.tel }}</div>
|
|
|
|
|
<router-link to="/userinfo/usercenter">
|
|
|
|
|
<div>
|
|
|
|
|
<span
|
|
|
|
|
><i class="iconfont icon-gerenzhongxin"></i>个人中心</span
|
|
|
|
|
><i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-gerenzhongxin"></i>个人中心
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/userinfo/accountsetting/loginpsw">
|
|
|
|
|
<div>
|
|
|
|
|
<span
|
|
|
|
|
><i class="iconfont icon-zhanghaoshezhi"></i
|
|
|
|
|
>账号设置</span
|
|
|
|
|
><i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-zhanghaoshezhi"></i>账号设置
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<button @click="logout">退出登录</button>
|
|
|
|
|
@ -63,26 +54,18 @@
|
|
|
|
|
</span>
|
|
|
|
|
<span v-else class="loginbtn">
|
|
|
|
|
<!-- <router-link to="/register">注册</router-link>/ -->
|
|
|
|
|
<router-link to="/login"
|
|
|
|
|
><button style="cursor: pointer">登录</button></router-link
|
|
|
|
|
></span
|
|
|
|
|
>
|
|
|
|
|
<router-link to="/login">
|
|
|
|
|
<button style="cursor: pointer">登录</button>
|
|
|
|
|
</router-link>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="navigationright">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/userinfo/mytownsman"
|
|
|
|
|
:class="routertitleindex === 3 ? 'titleactiveafter' : ''"
|
|
|
|
|
>我的老乡
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/userinfo/mytownsman" :class="routertitleindex === 3 ? 'titleactiveafter' : ''">我的老乡</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/userinfo/mybill"
|
|
|
|
|
:class="routertitleindex === 4 ? 'titleactiveafter' : ''"
|
|
|
|
|
>我的报名
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/userinfo/mybill" :class="routertitleindex === 4 ? 'titleactiveafter' : ''">我的报名</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</span>
|
|
|
|
|
@ -90,12 +73,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 搜索栏 -->
|
|
|
|
|
|
|
|
|
|
<router-view
|
|
|
|
|
:isspecialboxshow.sync="isspecialboxshow"
|
|
|
|
|
:formvalue="formvalue"
|
|
|
|
|
:jobMainList="jobMainList"
|
|
|
|
|
:isspinning="isspinning"
|
|
|
|
|
></router-view>
|
|
|
|
|
<router-view :isspecialboxshow.sync="isspecialboxshow" :formvalue="formvalue" :jobMainList="jobMainList" :isspinning="isspinning"></router-view>
|
|
|
|
|
<!-- 老乡广告 -->
|
|
|
|
|
<!-- <div class="fellowtownsman" v-if="laoxiangshow">
|
|
|
|
|
<div class="w">
|
|
|
|
|
@ -144,7 +122,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>-->
|
|
|
|
|
<!-- banner广告栏 -->
|
|
|
|
|
<div class="banner" v-if="isbannershow">
|
|
|
|
|
<div class="w">
|
|
|
|
|
@ -165,12 +143,15 @@
|
|
|
|
|
<li @click="totop">
|
|
|
|
|
<router-link to="/aboutus">关于我们</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
</ul> -->
|
|
|
|
|
</ul>-->
|
|
|
|
|
<div>
|
|
|
|
|
Copyright © 2015-2023 Bocai. All Rights Reserved. <i></i>
|
|
|
|
|
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index"
|
|
|
|
|
>豫ICP备2023001993号</a
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
powered by
|
|
|
|
|
<svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true">
|
|
|
|
|
<use xlink:href="#icon-bocai2" />
|
|
|
|
|
</svg>|Copyright © 2015-2023 Bocai. All Rights Reserved.|
|
|
|
|
|
</span>
|
|
|
|
|
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index">豫ICP备2023001993号</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
@ -179,14 +160,14 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// import joblist from "../components/firstjob/joblist.vue";
|
|
|
|
|
import { logoutApi } from "../api/login";
|
|
|
|
|
import Cookies from "js-cookie";
|
|
|
|
|
import { logoutApi } from '../api/login'
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
inject: ["reload"],
|
|
|
|
|
inject: ['reload'],
|
|
|
|
|
|
|
|
|
|
// 组件名称
|
|
|
|
|
name: "",
|
|
|
|
|
name: '',
|
|
|
|
|
// 局部注册的组件
|
|
|
|
|
components: {
|
|
|
|
|
// joblist,
|
|
|
|
|
@ -211,29 +192,29 @@ export default {
|
|
|
|
|
monthlyPayStr: [], // 每月工资
|
|
|
|
|
ageStr: [], // 年龄数据
|
|
|
|
|
jobSpecialLabelIds: [], // 特色标签索引
|
|
|
|
|
aliasName: "",
|
|
|
|
|
aliasName: '',
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
computed: {
|
|
|
|
|
routertitleindex: {
|
|
|
|
|
set() {},
|
|
|
|
|
get() {
|
|
|
|
|
const path = this.$route.fullPath;
|
|
|
|
|
if (path.indexOf("usercenter") > -1) {
|
|
|
|
|
return 1;
|
|
|
|
|
} else if (path.indexOf("accountsetting") > -1) {
|
|
|
|
|
return 2;
|
|
|
|
|
} else if (path.indexOf("mytownsman") > -1) {
|
|
|
|
|
return 3;
|
|
|
|
|
} else if (path.indexOf("mybill") > -1) {
|
|
|
|
|
return 4;
|
|
|
|
|
const path = this.$route.fullPath
|
|
|
|
|
if (path.indexOf('usercenter') > -1) {
|
|
|
|
|
return 1
|
|
|
|
|
} else if (path.indexOf('accountsetting') > -1) {
|
|
|
|
|
return 2
|
|
|
|
|
} else if (path.indexOf('mytownsman') > -1) {
|
|
|
|
|
return 3
|
|
|
|
|
} else if (path.indexOf('mybill') > -1) {
|
|
|
|
|
return 4
|
|
|
|
|
} else {
|
|
|
|
|
return 5;
|
|
|
|
|
return 5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
@ -250,17 +231,17 @@ export default {
|
|
|
|
|
// 侦听器
|
|
|
|
|
watch: {
|
|
|
|
|
routertitleindex() {
|
|
|
|
|
const path = this.$route.fullPath;
|
|
|
|
|
if (path.indexOf("serviceoutlets") > -1) {
|
|
|
|
|
this.laoxiangshow = true;
|
|
|
|
|
} else if (path.indexOf("list") > -1 || path.indexOf("detail") > -1) {
|
|
|
|
|
this.laoxiangshow = true;
|
|
|
|
|
} else if (path.indexOf("aboutus") > -1) {
|
|
|
|
|
this.laoxiangshow = false;
|
|
|
|
|
const path = this.$route.fullPath
|
|
|
|
|
if (path.indexOf('serviceoutlets') > -1) {
|
|
|
|
|
this.laoxiangshow = true
|
|
|
|
|
} else if (path.indexOf('list') > -1 || path.indexOf('detail') > -1) {
|
|
|
|
|
this.laoxiangshow = true
|
|
|
|
|
} else if (path.indexOf('aboutus') > -1) {
|
|
|
|
|
this.laoxiangshow = false
|
|
|
|
|
} else {
|
|
|
|
|
this.laoxiangshow = true;
|
|
|
|
|
this.laoxiangshow = true
|
|
|
|
|
}
|
|
|
|
|
this.showfooter();
|
|
|
|
|
this.showfooter()
|
|
|
|
|
},
|
|
|
|
|
// isLogin() {
|
|
|
|
|
// this.isLogin = JSON.parse(localStorage.getItem("LOGIN_DATA"));
|
|
|
|
|
@ -272,87 +253,84 @@ export default {
|
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
|
*/
|
|
|
|
|
created() {
|
|
|
|
|
this.isLaoxiangshow();
|
|
|
|
|
this.showfooter();
|
|
|
|
|
this.isLaoxiangshow()
|
|
|
|
|
this.showfooter()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
|
|
|
|
|
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
|
|
|
|
|
*/
|
|
|
|
|
mounted() {
|
|
|
|
|
this.isLogin = localStorage.getItem("LOGIN_DATA") !== null ? true : false;
|
|
|
|
|
this.isLogin = localStorage.getItem('LOGIN_DATA') !== null ? true : false
|
|
|
|
|
|
|
|
|
|
this.loginValue =
|
|
|
|
|
localStorage.getItem("LOGIN_DATA") !== null
|
|
|
|
|
? JSON.parse(localStorage.getItem("LOGIN_DATA"))
|
|
|
|
|
: { tel: "" };
|
|
|
|
|
this.loginValue = localStorage.getItem('LOGIN_DATA') !== null ? JSON.parse(localStorage.getItem('LOGIN_DATA')) : { tel: '' }
|
|
|
|
|
// console.log(document.querySelector(".ant-pagination-options-quick-jumper"));
|
|
|
|
|
},
|
|
|
|
|
// 组件方法
|
|
|
|
|
methods: {
|
|
|
|
|
totop() {
|
|
|
|
|
// console.log(window);
|
|
|
|
|
document.body.scrollTop = 0;
|
|
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
|
|
document.body.scrollTop = 0
|
|
|
|
|
document.documentElement.scrollTop = 0
|
|
|
|
|
// window.body.scrollY = 0;
|
|
|
|
|
},
|
|
|
|
|
isLaoxiangshow() {
|
|
|
|
|
const path = this.$route.fullPath;
|
|
|
|
|
if (path.indexOf("serviceoutlets") > -1) {
|
|
|
|
|
this.laoxiangshow = true;
|
|
|
|
|
} else if (path.indexOf("list") > -1 || path.indexOf("detail") > -1) {
|
|
|
|
|
this.laoxiangshow = true;
|
|
|
|
|
} else if (path.indexOf("aboutus") > -1) {
|
|
|
|
|
this.laoxiangshow = false;
|
|
|
|
|
const path = this.$route.fullPath
|
|
|
|
|
if (path.indexOf('serviceoutlets') > -1) {
|
|
|
|
|
this.laoxiangshow = true
|
|
|
|
|
} else if (path.indexOf('list') > -1 || path.indexOf('detail') > -1) {
|
|
|
|
|
this.laoxiangshow = true
|
|
|
|
|
} else if (path.indexOf('aboutus') > -1) {
|
|
|
|
|
this.laoxiangshow = false
|
|
|
|
|
} else {
|
|
|
|
|
this.laoxiangshow = true;
|
|
|
|
|
this.laoxiangshow = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async logout() {
|
|
|
|
|
try {
|
|
|
|
|
const data = await logoutApi();
|
|
|
|
|
console.log(data);
|
|
|
|
|
const data = await logoutApi()
|
|
|
|
|
console.log(data)
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
localStorage.removeItem("LOGIN_DATA");
|
|
|
|
|
this.reload();
|
|
|
|
|
this.$router.push("/main");
|
|
|
|
|
localStorage.removeItem('LOGIN_DATA')
|
|
|
|
|
this.reload()
|
|
|
|
|
this.$router.push('/main')
|
|
|
|
|
} else {
|
|
|
|
|
console.log(1);
|
|
|
|
|
console.log(1)
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
this.$message.warning(error.message);
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.$message.warning(error.message)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
resetpage() {
|
|
|
|
|
console.log(1);
|
|
|
|
|
console.log(1)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.reload();
|
|
|
|
|
document.body.scrollTop = 0;
|
|
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
|
|
}, 1000);
|
|
|
|
|
this.reload()
|
|
|
|
|
document.body.scrollTop = 0
|
|
|
|
|
document.documentElement.scrollTop = 0
|
|
|
|
|
}, 1000)
|
|
|
|
|
},
|
|
|
|
|
showfooter() {
|
|
|
|
|
const path = this.$route.fullPath;
|
|
|
|
|
const path = this.$route.fullPath
|
|
|
|
|
|
|
|
|
|
if (path.indexOf("main") > -1) {
|
|
|
|
|
this.isbannershow = false;
|
|
|
|
|
this.isfootershow = false;
|
|
|
|
|
if (path.indexOf('main') > -1) {
|
|
|
|
|
this.isbannershow = false
|
|
|
|
|
this.isfootershow = false
|
|
|
|
|
} else {
|
|
|
|
|
this.isbannershow = true;
|
|
|
|
|
this.isfootershow = true;
|
|
|
|
|
this.isbannershow = true
|
|
|
|
|
this.isfootershow = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (path.indexOf("login") > -1) {
|
|
|
|
|
this.isbannershow = false;
|
|
|
|
|
if (path.indexOf('login') > -1) {
|
|
|
|
|
this.isbannershow = false
|
|
|
|
|
}
|
|
|
|
|
if (path.indexOf("loginpsw") > -1) {
|
|
|
|
|
this.isbannershow = true;
|
|
|
|
|
if (path.indexOf('loginpsw') > -1) {
|
|
|
|
|
this.isbannershow = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|