|
@@ -14,6 +14,7 @@
|
|
:infoList="jobinfoList"
|
|
:infoList="jobinfoList"
|
|
:linkImgList="linkList"
|
|
:linkImgList="linkList"
|
|
:lunboList="coopList"
|
|
:lunboList="coopList"
|
|
|
|
+ :floating="floating"
|
|
>
|
|
>
|
|
<template #native>
|
|
<template #native>
|
|
<top-menu></top-menu>
|
|
<top-menu></top-menu>
|
|
@@ -47,6 +48,7 @@
|
|
:unittop="master.unittop"
|
|
:unittop="master.unittop"
|
|
:unitlist="coopList"
|
|
:unitlist="coopList"
|
|
:footinfo="site"
|
|
:footinfo="site"
|
|
|
|
+ :floating="floating"
|
|
:rilitop="master.rilitop"
|
|
:rilitop="master.rilitop"
|
|
:rightInfo="master.rightInfo"
|
|
:rightInfo="master.rightInfo"
|
|
>
|
|
>
|
|
@@ -94,6 +96,7 @@ export default {
|
|
talksOutList: [],
|
|
talksOutList: [],
|
|
jobinfoList: [],
|
|
jobinfoList: [],
|
|
site: {},
|
|
site: {},
|
|
|
|
+ floating: {},
|
|
news: [],
|
|
news: [],
|
|
notice: [],
|
|
notice: [],
|
|
self1List: [],
|
|
self1List: [],
|
|
@@ -131,7 +134,7 @@ export default {
|
|
//检查用户身份
|
|
//检查用户身份
|
|
checkUser() {
|
|
checkUser() {
|
|
let schId = sessionStorage.getItem('schId');
|
|
let schId = sessionStorage.getItem('schId');
|
|
- if (schId === 'master') {
|
|
|
|
|
|
+ if (schId !== 'master') {
|
|
this.$set(this, `user`, schId);
|
|
this.$set(this, `user`, schId);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -142,12 +145,30 @@ export default {
|
|
let result = await this.siteOperation({ type: 'search', data: { site: this.$site } });
|
|
let result = await this.siteOperation({ type: 'search', data: { site: this.$site } });
|
|
if (`${result.errcode}` === `0`) {
|
|
if (`${result.errcode}` === `0`) {
|
|
sessionStorage.setItem('site', JSON.stringify(result.data));
|
|
sessionStorage.setItem('site', JSON.stringify(result.data));
|
|
|
|
+ if (result.data.custom) {
|
|
|
|
+ let item = result.data.custom;
|
|
|
|
+ this.getfloating(item);
|
|
|
|
+ }
|
|
this.$set(this, `site`, result.data);
|
|
this.$set(this, `site`, result.data);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log(JSON.parse(site));
|
|
this.$set(this, `site`, JSON.parse(site));
|
|
this.$set(this, `site`, JSON.parse(site));
|
|
|
|
+ let arr = this.site;
|
|
|
|
+ if (arr.custom) {
|
|
|
|
+ let item = arr.custom;
|
|
|
|
+ this.getfloating(item);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ getfloating(item) {
|
|
|
|
+ let arr = JSON.parse(item);
|
|
|
|
+ arr.forEach(val => {
|
|
|
|
+ if (val.item == '浮窗') {
|
|
|
|
+ this.$set(this, `floating`, val);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//查询招聘类信息
|
|
//查询招聘类信息
|
|
async search() {
|
|
async search() {
|
|
// 1直接拿着参数发送请求
|
|
// 1直接拿着参数发送请求
|