|
|
|
|
@ -7,44 +7,19 @@
|
|
|
|
|
<span>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/"
|
|
|
|
|
:class="routertitleindex == 0 ? 'titleactive' : ''"
|
|
|
|
|
rel="opener"
|
|
|
|
|
>
|
|
|
|
|
首页</router-link
|
|
|
|
|
>
|
|
|
|
|
<router-link to="/" :class="routertitleindex == 0 ? 'titleactive' : ''" rel="opener">首页</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/list"
|
|
|
|
|
@click.native="toList"
|
|
|
|
|
:class="routertitleindex == 1 ? 'titleactive' : ''"
|
|
|
|
|
rel="opener"
|
|
|
|
|
>稻田职位</router-link
|
|
|
|
|
>
|
|
|
|
|
<router-link to="/list" @click.native="toList" :class="routertitleindex == 1 ? 'titleactive' : ''" rel="opener">稻田职位</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/mybill"
|
|
|
|
|
:class="routertitleindex == 5 ? 'titleactive' : ''"
|
|
|
|
|
rel="opener"
|
|
|
|
|
>我的报名
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/mybill" :class="routertitleindex == 5 ? 'titleactive' : ''" rel="opener">我的报名</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/mytownsman"
|
|
|
|
|
:class="routertitleindex == 4 ? 'titleactive' : ''"
|
|
|
|
|
>我的老乡
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/mytownsman" :class="routertitleindex == 4 ? 'titleactive' : ''">我的老乡</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/dataStatistics"
|
|
|
|
|
:class="routertitleindex == 6 ? 'titleactive' : ''"
|
|
|
|
|
>数据统计
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/dataStatistics" :class="routertitleindex == 6 ? 'titleactive' : ''">数据统计</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<!-- <li>
|
|
|
|
|
<router-link to="/serviceoutlets"
|
|
|
|
|
@ -75,30 +50,28 @@
|
|
|
|
|
<span>个人中心</span>
|
|
|
|
|
<div class="loginbox" slot="overlay">
|
|
|
|
|
<div>
|
|
|
|
|
<img
|
|
|
|
|
:src="loginValue.imgSrc"
|
|
|
|
|
alt=""
|
|
|
|
|
v-if="loginValue.imgSrc !== ''"
|
|
|
|
|
style="border-radius: 50%"
|
|
|
|
|
/>
|
|
|
|
|
<span v-else class="iconfont icon-morentouxiang avatar"></span
|
|
|
|
|
><span class="username">{{
|
|
|
|
|
<img :src="loginValue.imgSrc" alt v-if="loginValue.imgSrc !== ''" style="border-radius: 50%" />
|
|
|
|
|
<span v-else class="iconfont icon-morentouxiang avatar"></span>
|
|
|
|
|
<span class="username">
|
|
|
|
|
{{
|
|
|
|
|
loginValue.userName || loginValue.nickName || loginValue.tel
|
|
|
|
|
}}</span>
|
|
|
|
|
}}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<router-link to="/accountsetting">
|
|
|
|
|
<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="/memberInfo">
|
|
|
|
|
<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>
|
|
|
|
|
<!-- <router-link to="/accountsetting"
|
|
|
|
|
@ -115,9 +88,9 @@
|
|
|
|
|
</span>
|
|
|
|
|
<span class="loginbtn" v-else>
|
|
|
|
|
<!-- <router-link to="/register">注册</router-link>/ -->
|
|
|
|
|
<router-link to="/login"
|
|
|
|
|
><button style="cursor: pointer">登录</button></router-link
|
|
|
|
|
>
|
|
|
|
|
<router-link to="/login">
|
|
|
|
|
<button style="cursor: pointer">登录</button>
|
|
|
|
|
</router-link>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<!-- <span class="navigationright">
|
|
|
|
|
@ -142,12 +115,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">
|
|
|
|
|
@ -218,10 +186,9 @@
|
|
|
|
|
</li>
|
|
|
|
|
</ul>-->
|
|
|
|
|
<div>
|
|
|
|
|
Copyright © 2015 - 2022 Bocai. All Rights Reserved. <i></i>
|
|
|
|
|
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index"
|
|
|
|
|
>豫ICP备2023001993号</a
|
|
|
|
|
>
|
|
|
|
|
Copyright © 2015 - 2022 Bocai. All Rights Reserved.
|
|
|
|
|
<i></i>
|
|
|
|
|
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index">豫ICP备2023001993号</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
@ -230,24 +197,24 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// import joblist from "../components/firstjob/joblist.vue";
|
|
|
|
|
import Cookies from "js-cookie";
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
import {
|
|
|
|
|
JobListApi,
|
|
|
|
|
// getCityApi,
|
|
|
|
|
} from "../api/job";
|
|
|
|
|
} from '../api/job'
|
|
|
|
|
|
|
|
|
|
import { logoutApi } from "../api/login";
|
|
|
|
|
import { disposeJobListData } from "../utils/commonUtil";
|
|
|
|
|
import { logoutApi } from '../api/login'
|
|
|
|
|
import { disposeJobListData } from '../utils/commonUtil'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
inject: ["reload"],
|
|
|
|
|
inject: ['reload'],
|
|
|
|
|
provide() {
|
|
|
|
|
return {
|
|
|
|
|
getJobList: this.getJobList,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 组件名称
|
|
|
|
|
name: "",
|
|
|
|
|
name: '',
|
|
|
|
|
// 局部注册的组件
|
|
|
|
|
components: {
|
|
|
|
|
// joblist,
|
|
|
|
|
@ -270,38 +237,38 @@ export default {
|
|
|
|
|
// 筛选的上传参数
|
|
|
|
|
district: [], // 城镇数据
|
|
|
|
|
monthlyPayStr: [], // 每月工资
|
|
|
|
|
ageStr: "", // 年龄数据
|
|
|
|
|
ageStr: '', // 年龄数据
|
|
|
|
|
jobSpecialLabelIds: [], // 特色标签索引
|
|
|
|
|
aliasName: "",
|
|
|
|
|
aliasName: '',
|
|
|
|
|
sex: [],
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
computed: {
|
|
|
|
|
routertitleindex: {
|
|
|
|
|
set() {},
|
|
|
|
|
get() {
|
|
|
|
|
const path = this.$route.fullPath;
|
|
|
|
|
if (path.indexOf("serviceoutlets") > -1) {
|
|
|
|
|
return 2;
|
|
|
|
|
} else if (path.indexOf("list") > -1 || path.indexOf("detail") > -1) {
|
|
|
|
|
return 1;
|
|
|
|
|
} else if (path.indexOf("aboutus") > -1) {
|
|
|
|
|
return 3;
|
|
|
|
|
} else if (path.indexOf("main") > -1) {
|
|
|
|
|
return 0;
|
|
|
|
|
} else if (path.indexOf("mytownsman") > -1) {
|
|
|
|
|
return 4;
|
|
|
|
|
} else if (path.indexOf("mybill") > -1) {
|
|
|
|
|
return 5;
|
|
|
|
|
} else if (path.indexOf("dataStatistics") > -1) {
|
|
|
|
|
return 6;
|
|
|
|
|
const path = this.$route.fullPath
|
|
|
|
|
if (path.indexOf('serviceoutlets') > -1) {
|
|
|
|
|
return 2
|
|
|
|
|
} else if (path.indexOf('list') > -1 || path.indexOf('detail') > -1) {
|
|
|
|
|
return 1
|
|
|
|
|
} else if (path.indexOf('aboutus') > -1) {
|
|
|
|
|
return 3
|
|
|
|
|
} else if (path.indexOf('main') > -1) {
|
|
|
|
|
return 0
|
|
|
|
|
} else if (path.indexOf('mytownsman') > -1) {
|
|
|
|
|
return 4
|
|
|
|
|
} else if (path.indexOf('mybill') > -1) {
|
|
|
|
|
return 5
|
|
|
|
|
} else if (path.indexOf('dataStatistics') > -1) {
|
|
|
|
|
return 6
|
|
|
|
|
} else {
|
|
|
|
|
return 7;
|
|
|
|
|
return 7
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
@ -318,17 +285,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()
|
|
|
|
|
},
|
|
|
|
|
$route: {
|
|
|
|
|
handler(to) {
|
|
|
|
|
@ -336,17 +303,17 @@ export default {
|
|
|
|
|
// console.log(to);
|
|
|
|
|
// console.log(from);
|
|
|
|
|
// console.dir(this.navigationBarLocation);
|
|
|
|
|
window.addEventListener("scroll", this.navigationBarLocation);
|
|
|
|
|
window.addEventListener("scroll", this.windowScroll); //监听页面滚动
|
|
|
|
|
if (to.fullPath == "/list") {
|
|
|
|
|
window.removeEventListener("scroll", this.navigationBarLocation);
|
|
|
|
|
return;
|
|
|
|
|
} else if (to.fullPath == "/main") {
|
|
|
|
|
window.removeEventListener("scroll", this.windowScroll);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
window.removeEventListener("scroll", this.navigationBarLocation);
|
|
|
|
|
window.removeEventListener("scroll", this.windowScroll);
|
|
|
|
|
window.addEventListener('scroll', this.navigationBarLocation)
|
|
|
|
|
window.addEventListener('scroll', this.windowScroll) //监听页面滚动
|
|
|
|
|
if (to.fullPath == '/list') {
|
|
|
|
|
window.removeEventListener('scroll', this.navigationBarLocation)
|
|
|
|
|
return
|
|
|
|
|
} else if (to.fullPath == '/main') {
|
|
|
|
|
window.removeEventListener('scroll', this.windowScroll)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
window.removeEventListener('scroll', this.navigationBarLocation)
|
|
|
|
|
window.removeEventListener('scroll', this.windowScroll)
|
|
|
|
|
},
|
|
|
|
|
deep: true,
|
|
|
|
|
immediate: true,
|
|
|
|
|
@ -361,25 +328,21 @@ export default {
|
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
|
*/
|
|
|
|
|
created() {
|
|
|
|
|
console.log();
|
|
|
|
|
if (localStorage.getItem("LOGIN_DATA")) {
|
|
|
|
|
this.isLogin = true;
|
|
|
|
|
}
|
|
|
|
|
this.getJobList();
|
|
|
|
|
this.isLaoxiangshow();
|
|
|
|
|
this.getRecommendJob();
|
|
|
|
|
this.showfooter();
|
|
|
|
|
console.log()
|
|
|
|
|
if (localStorage.getItem('LOGIN_DATA')) {
|
|
|
|
|
this.isLogin = true
|
|
|
|
|
}
|
|
|
|
|
this.getJobList()
|
|
|
|
|
this.isLaoxiangshow()
|
|
|
|
|
this.getRecommendJob()
|
|
|
|
|
this.showfooter()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
|
|
|
|
|
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
|
|
|
|
|
*/
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
|
|
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(this.loginValue);
|
|
|
|
|
// console.log(document.querySelector(".ant-pagination-options-quick-jumper"));
|
|
|
|
|
},
|
|
|
|
|
@ -420,130 +383,123 @@ export default {
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
navigationBarLocation() {
|
|
|
|
|
let navigationBar = document.getElementById("navigationBar");
|
|
|
|
|
let aboutBill = document.getElementById("aboutBill");
|
|
|
|
|
let navigationBar = document.getElementById('navigationBar')
|
|
|
|
|
let aboutBill = document.getElementById('aboutBill')
|
|
|
|
|
// console.log(navigationBar.getBoundingClientRect().top);
|
|
|
|
|
// console.log(aboutBill);
|
|
|
|
|
// console.log(aboutBill.getBoundingClientRect().top);
|
|
|
|
|
if (this.$route.fullPath == "/main") {
|
|
|
|
|
if (
|
|
|
|
|
navigationBar.getBoundingClientRect().top <= 0 &&
|
|
|
|
|
aboutBill.getBoundingClientRect().top < 84
|
|
|
|
|
) {
|
|
|
|
|
navigationBar.style.position = "fixed";
|
|
|
|
|
navigationBar.style.top = "0px";
|
|
|
|
|
navigationBar.style.boxShadow = "0 0 10px 0 #eee";
|
|
|
|
|
navigationBar.style.width = "1920px";
|
|
|
|
|
} else if (
|
|
|
|
|
navigationBar.getBoundingClientRect().top == 0 &&
|
|
|
|
|
aboutBill.getBoundingClientRect().top >= 84
|
|
|
|
|
) {
|
|
|
|
|
if (this.$route.fullPath == '/main') {
|
|
|
|
|
if (navigationBar.getBoundingClientRect().top <= 0 && aboutBill.getBoundingClientRect().top < 84) {
|
|
|
|
|
navigationBar.style.position = 'fixed'
|
|
|
|
|
navigationBar.style.top = '0px'
|
|
|
|
|
navigationBar.style.boxShadow = '0 0 10px 0 #eee'
|
|
|
|
|
navigationBar.style.width = '1920px'
|
|
|
|
|
} else if (navigationBar.getBoundingClientRect().top == 0 && aboutBill.getBoundingClientRect().top >= 84) {
|
|
|
|
|
// console.log('isbig');
|
|
|
|
|
navigationBar.style.position = "absolute";
|
|
|
|
|
navigationBar.style.top = "unset";
|
|
|
|
|
navigationBar.style.bottom = "0px";
|
|
|
|
|
navigationBar.style.boxShadow = "none";
|
|
|
|
|
navigationBar.style.width = "1200px";
|
|
|
|
|
navigationBar.style.position = 'absolute'
|
|
|
|
|
navigationBar.style.top = 'unset'
|
|
|
|
|
navigationBar.style.bottom = '0px'
|
|
|
|
|
navigationBar.style.boxShadow = 'none'
|
|
|
|
|
navigationBar.style.width = '1200px'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 获取工作列表
|
|
|
|
|
async getJobList(newdata) {
|
|
|
|
|
this.isspinning = true;
|
|
|
|
|
console.log(this.formvalue);
|
|
|
|
|
this.isspinning = true
|
|
|
|
|
console.log(this.formvalue)
|
|
|
|
|
try {
|
|
|
|
|
newdata = {
|
|
|
|
|
district: "",
|
|
|
|
|
monthlyPayStr: "",
|
|
|
|
|
ageStr: "",
|
|
|
|
|
jobSpecialLabelIds: "",
|
|
|
|
|
aliasName: "",
|
|
|
|
|
district: '',
|
|
|
|
|
monthlyPayStr: '',
|
|
|
|
|
ageStr: '',
|
|
|
|
|
jobSpecialLabelIds: '',
|
|
|
|
|
aliasName: '',
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
for (var k in this.formvalue) {
|
|
|
|
|
// console.log(this.formvalue[k]);
|
|
|
|
|
if (Array.isArray(this.formvalue[k])) {
|
|
|
|
|
newdata[k] =
|
|
|
|
|
this.formvalue[k].length > 0 ? this.formvalue[k].join() : "";
|
|
|
|
|
newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : ''
|
|
|
|
|
} else {
|
|
|
|
|
newdata[k] = this.formvalue[k];
|
|
|
|
|
newdata[k] = this.formvalue[k]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// console.log(newdata);
|
|
|
|
|
// debugger;
|
|
|
|
|
// console.log(this.isLogin);
|
|
|
|
|
if (this.isLogin) {
|
|
|
|
|
const { data } = await JobListApi(newdata);
|
|
|
|
|
const { data } = await JobListApi(newdata)
|
|
|
|
|
// console.log(data);
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
this.jobMainList = disposeJobListData(data.data.recordList);
|
|
|
|
|
this.formvalue.total = data.data.recordCount;
|
|
|
|
|
console.log(this.jobMainList);
|
|
|
|
|
this.jobMainList = disposeJobListData(data.data.recordList)
|
|
|
|
|
this.formvalue.total = data.data.recordCount
|
|
|
|
|
console.log(this.jobMainList)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.info("数据获取失败");
|
|
|
|
|
this.$message.info('数据获取失败')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.totop();
|
|
|
|
|
this.totop()
|
|
|
|
|
// = data.data.recordList;
|
|
|
|
|
// console.log(this.formvalue);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
console.log(error)
|
|
|
|
|
}
|
|
|
|
|
this.isspinning = false;
|
|
|
|
|
this.isspinning = false
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
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 getRecommendJob() {
|
|
|
|
|
this.isspinning = true;
|
|
|
|
|
this.isspinning = true
|
|
|
|
|
try {
|
|
|
|
|
if (this.isLogin) {
|
|
|
|
|
const { data } = await JobListApi({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 4,
|
|
|
|
|
jobCategory: 608,
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
// console.log(data);
|
|
|
|
|
this.fellowList = disposeJobListData(data.data.recordList);
|
|
|
|
|
this.fellowList = disposeJobListData(data.data.recordList)
|
|
|
|
|
// console.log(this.fellowList);
|
|
|
|
|
}
|
|
|
|
|
// this.$emit("update:relationList", this.relationList);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
console.log(error)
|
|
|
|
|
}
|
|
|
|
|
this.isspinning = false;
|
|
|
|
|
this.isspinning = false
|
|
|
|
|
},
|
|
|
|
|
async logout() {
|
|
|
|
|
// logoutApi().then((result) => {
|
|
|
|
|
// console.log(result);
|
|
|
|
|
// });
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// this.fellowList = disposeJobListData(data.data.recordList);
|
|
|
|
|
@ -551,8 +507,8 @@ export default {
|
|
|
|
|
// console.log(this.fellowList);
|
|
|
|
|
// this.$emit("update:relationList", this.relationList);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
this.$message.warning(error.message);
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.$message.warning(error.message)
|
|
|
|
|
}
|
|
|
|
|
// console.log(data);
|
|
|
|
|
// if (data.status === 200) {
|
|
|
|
|
@ -560,36 +516,36 @@ export default {
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
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.isbannershow = true
|
|
|
|
|
|
|
|
|
|
this.isfootershow = true;
|
|
|
|
|
this.isfootershow = true
|
|
|
|
|
}
|
|
|
|
|
if (path.indexOf("login") > -1 && path.indexOf("loginpsw") == -1) {
|
|
|
|
|
this.isbannershow = false;
|
|
|
|
|
if (path.indexOf('login') > -1 && path.indexOf('loginpsw') == -1) {
|
|
|
|
|
this.isbannershow = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toList() {
|
|
|
|
|
console.log(this.$router);
|
|
|
|
|
console.log(this.$router)
|
|
|
|
|
// this.$router.go(0);
|
|
|
|
|
// window.location.reload();
|
|
|
|
|
this.reload();
|
|
|
|
|
this.reload()
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|