|
|
|
|
@ -53,50 +53,55 @@
|
|
|
|
|
</div>
|
|
|
|
|
<span v-if="isLogin" class="logined fsa">
|
|
|
|
|
<div class v-if="loginValue.agencyName == '郑州一才工作'">
|
|
|
|
|
<a-dropdown :trigger="['click']" v-if="false" overlayClassName="logindropdown" placement="bottomRight" :getPopupContainer="
|
|
|
|
|
<a-dropdown
|
|
|
|
|
:trigger="['click']"
|
|
|
|
|
v-if="false"
|
|
|
|
|
overlayClassName="logindropdown"
|
|
|
|
|
placement="bottomRight"
|
|
|
|
|
:getPopupContainer="
|
|
|
|
|
(triggerNode) => {
|
|
|
|
|
return triggerNode.parentNode || document.body;
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<div class="mr20 user-box">
|
|
|
|
|
<i class="iconfont icon-xiaoxi"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="loginbox" slot="overlay">
|
|
|
|
|
<router-link to="/systemMsg">
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-xitongtongzhi"></i>系统通知
|
|
|
|
|
</span>
|
|
|
|
|
<span> <i class="iconfont icon-xitongtongzhi"></i>系统通知 </span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/teamMsg">
|
|
|
|
|
<div style="border-bottom: none;">
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-tuanduitongzhi"></i>团队通知
|
|
|
|
|
</span>
|
|
|
|
|
<div style="border-bottom: none">
|
|
|
|
|
<span> <i class="iconfont icon-tuanduitongzhi"></i>团队通知 </span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
</div>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
<a-dropdown :trigger="['click']" overlayClassName="logindropdown" placement="bottomRight" :getPopupContainer="
|
|
|
|
|
<a-dropdown
|
|
|
|
|
:trigger="['click']"
|
|
|
|
|
overlayClassName="logindropdown"
|
|
|
|
|
placement="bottomRight"
|
|
|
|
|
:getPopupContainer="
|
|
|
|
|
(triggerNode) => {
|
|
|
|
|
return triggerNode.parentNode || document.body;
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<span class="fsa fsa-box">
|
|
|
|
|
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
|
|
|
|
|
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:28px;height:28px;" alt v-else />
|
|
|
|
|
<div class="ml4 f14 c6">{{ userbaseInfo.userName || userbaseInfo.nickName || '-' }}</div>
|
|
|
|
|
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius: 50%; width: 28px; height: 28px" alt v-else />
|
|
|
|
|
<div class="ml4 f14 c6">{{ userbaseInfo.userName || userbaseInfo.nickName || "-" }}</div>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="loginbox" slot="overlay">
|
|
|
|
|
<router-link to="/accountsetting">
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-gerenzhongxin"></i>个人中心
|
|
|
|
|
</span>
|
|
|
|
|
<span> <i class="iconfont icon-gerenzhongxin"></i>个人中心 </span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
@ -111,20 +116,18 @@
|
|
|
|
|
<!-- 2023-11-29 注释该条件 && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 ) -->
|
|
|
|
|
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作' || loginValue.id == '116253'">
|
|
|
|
|
<div @click="goAdmin">
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-shangjiahoutai"></i>商家后台
|
|
|
|
|
</span>
|
|
|
|
|
<span> <i class="iconfont icon-shangjiahoutai"></i>商家后台 </span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'">
|
|
|
|
|
<!-- <router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'">
|
|
|
|
|
<div @click="goJiaofu">
|
|
|
|
|
<span>
|
|
|
|
|
<i class="iconfont icon-jiaofuzhushouicon"></i>交付助手
|
|
|
|
|
</span>
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</router-link>
|
|
|
|
|
</router-link> -->
|
|
|
|
|
<button @click="logout">退出登录</button>
|
|
|
|
|
</div>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
@ -225,8 +228,8 @@
|
|
|
|
|
<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.|
|
|
|
|
|
<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>
|
|
|
|
|
@ -237,27 +240,27 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// import joblist from "../components/firstjob/joblist.vue";
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
import Cookies from "js-cookie";
|
|
|
|
|
import {
|
|
|
|
|
JobListApi,
|
|
|
|
|
JobListApiYicai
|
|
|
|
|
JobListApiYicai,
|
|
|
|
|
// getCityApi,
|
|
|
|
|
} from '../api/job'
|
|
|
|
|
} from "../api/job";
|
|
|
|
|
|
|
|
|
|
import { logoutApi } from '../api/login'
|
|
|
|
|
import { disposeJobListData,setReturnFee } from '../utils/commonUtil'
|
|
|
|
|
import { logoutApi } from "../api/login";
|
|
|
|
|
import { disposeJobListData, setReturnFee } from "../utils/commonUtil";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
inject: ['reload'],
|
|
|
|
|
inject: ["reload"],
|
|
|
|
|
provide() {
|
|
|
|
|
return {
|
|
|
|
|
getJobList: this.getJobList,
|
|
|
|
|
getJobListYicai: this.getJobListYicai,
|
|
|
|
|
logout: this.logout,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
// 组件名称
|
|
|
|
|
name: '',
|
|
|
|
|
name: "",
|
|
|
|
|
// 局部注册的组件
|
|
|
|
|
components: {
|
|
|
|
|
// joblist,
|
|
|
|
|
@ -280,18 +283,18 @@ export default {
|
|
|
|
|
// 筛选的上传参数
|
|
|
|
|
district: [], // 城镇数据
|
|
|
|
|
monthlyPayStr: [], // 每月工资
|
|
|
|
|
ageStr: '', // 年龄数据
|
|
|
|
|
ageStr: "", // 年龄数据
|
|
|
|
|
jobSpecialLabelIds: [], // 特色标签索引
|
|
|
|
|
aliasName: '',
|
|
|
|
|
aliasName: "",
|
|
|
|
|
sex: [],
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
},
|
|
|
|
|
userbaseInfo: JSON.parse(localStorage.getItem('LOGIN_DATA')),
|
|
|
|
|
userbaseInfo: JSON.parse(localStorage.getItem("LOGIN_DATA")),
|
|
|
|
|
loginPage: false,
|
|
|
|
|
routertitleindex: 0,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
computed: {
|
|
|
|
|
@ -341,49 +344,49 @@ export default {
|
|
|
|
|
// } else {
|
|
|
|
|
// this.laoxiangshow = true
|
|
|
|
|
// }
|
|
|
|
|
this.showfooter()
|
|
|
|
|
this.showfooter();
|
|
|
|
|
},
|
|
|
|
|
$route: {
|
|
|
|
|
handler(to) {
|
|
|
|
|
console.log()
|
|
|
|
|
console.log();
|
|
|
|
|
// console.log("ischange");
|
|
|
|
|
// console.log(to);
|
|
|
|
|
// console.log(from);
|
|
|
|
|
// console.dir(this.navigationBarLocation);
|
|
|
|
|
window.addEventListener('scroll', this.navigationBarLocation)
|
|
|
|
|
window.addEventListener('scroll', this.windowScroll) //监听页面滚动
|
|
|
|
|
if (to.fullPath.indexOf('serviceoutlets') > -1) {
|
|
|
|
|
this.routertitleindex = 2
|
|
|
|
|
} else if (to.fullPath.indexOf('list') > -1 || to.fullPath.indexOf('detail') > -1) {
|
|
|
|
|
this.routertitleindex = 1
|
|
|
|
|
} else if (to.fullPath.indexOf('aboutus') > -1) {
|
|
|
|
|
this.routertitleindex = 3
|
|
|
|
|
} else if (to.fullPath.indexOf('main') > -1) {
|
|
|
|
|
this.routertitleindex = 0
|
|
|
|
|
} else if (to.fullPath.indexOf('mytownsman') > -1) {
|
|
|
|
|
this.routertitleindex = 4
|
|
|
|
|
} else if (to.fullPath.indexOf('mybill') > -1) {
|
|
|
|
|
this.routertitleindex = 5
|
|
|
|
|
} else if (to.fullPath.indexOf('dataStatistics') > -1) {
|
|
|
|
|
this.routertitleindex = 6
|
|
|
|
|
window.addEventListener("scroll", this.navigationBarLocation);
|
|
|
|
|
window.addEventListener("scroll", this.windowScroll); //监听页面滚动
|
|
|
|
|
if (to.fullPath.indexOf("serviceoutlets") > -1) {
|
|
|
|
|
this.routertitleindex = 2;
|
|
|
|
|
} else if (to.fullPath.indexOf("list") > -1 || to.fullPath.indexOf("detail") > -1) {
|
|
|
|
|
this.routertitleindex = 1;
|
|
|
|
|
} else if (to.fullPath.indexOf("aboutus") > -1) {
|
|
|
|
|
this.routertitleindex = 3;
|
|
|
|
|
} else if (to.fullPath.indexOf("main") > -1) {
|
|
|
|
|
this.routertitleindex = 0;
|
|
|
|
|
} else if (to.fullPath.indexOf("mytownsman") > -1) {
|
|
|
|
|
this.routertitleindex = 4;
|
|
|
|
|
} else if (to.fullPath.indexOf("mybill") > -1) {
|
|
|
|
|
this.routertitleindex = 5;
|
|
|
|
|
} else if (to.fullPath.indexOf("dataStatistics") > -1) {
|
|
|
|
|
this.routertitleindex = 6;
|
|
|
|
|
} else {
|
|
|
|
|
this.routertitleindex = 7
|
|
|
|
|
this.routertitleindex = 7;
|
|
|
|
|
}
|
|
|
|
|
if (to.fullPath == '/login' || !localStorage.getItem('LOGIN_DATA')) {
|
|
|
|
|
this.loginPage = true
|
|
|
|
|
this.isLogin = false
|
|
|
|
|
if (to.fullPath == "/login" || !localStorage.getItem("LOGIN_DATA")) {
|
|
|
|
|
this.loginPage = true;
|
|
|
|
|
this.isLogin = false;
|
|
|
|
|
} else {
|
|
|
|
|
this.loginPage = false
|
|
|
|
|
this.loginPage = false;
|
|
|
|
|
}
|
|
|
|
|
if (to.fullPath == '/list') {
|
|
|
|
|
window.removeEventListener('scroll', this.navigationBarLocation)
|
|
|
|
|
return
|
|
|
|
|
} else if (to.fullPath == '/main') {
|
|
|
|
|
window.removeEventListener('scroll', this.windowScroll)
|
|
|
|
|
return
|
|
|
|
|
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.removeEventListener("scroll", this.navigationBarLocation);
|
|
|
|
|
window.removeEventListener("scroll", this.windowScroll);
|
|
|
|
|
},
|
|
|
|
|
deep: true,
|
|
|
|
|
immediate: true,
|
|
|
|
|
@ -394,26 +397,26 @@ export default {
|
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
|
*/
|
|
|
|
|
created() {
|
|
|
|
|
console.log(this.$route)
|
|
|
|
|
if (this.$route.fullPath != '/login') {
|
|
|
|
|
this.loginPage = false
|
|
|
|
|
}
|
|
|
|
|
if (localStorage.getItem('LOGIN_DATA')) {
|
|
|
|
|
this.isLogin = true
|
|
|
|
|
}
|
|
|
|
|
this.getJobList()
|
|
|
|
|
this.getJobListYicai()
|
|
|
|
|
this.isLaoxiangshow()
|
|
|
|
|
this.getRecommendJob()
|
|
|
|
|
this.showfooter()
|
|
|
|
|
console.log(this.$route);
|
|
|
|
|
if (this.$route.fullPath != "/login") {
|
|
|
|
|
this.loginPage = false;
|
|
|
|
|
}
|
|
|
|
|
if (localStorage.getItem("LOGIN_DATA")) {
|
|
|
|
|
this.isLogin = true;
|
|
|
|
|
}
|
|
|
|
|
this.getJobList();
|
|
|
|
|
this.getJobListYicai();
|
|
|
|
|
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: '' }
|
|
|
|
|
console.log(this.loginValue)
|
|
|
|
|
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"));
|
|
|
|
|
},
|
|
|
|
|
// 组件方法
|
|
|
|
|
@ -453,176 +456,172 @@ 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 (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'
|
|
|
|
|
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;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取一才工作列表
|
|
|
|
|
async getJobListYicai(newdata) {
|
|
|
|
|
this.isspinning = true
|
|
|
|
|
console.log(this.formvalue)
|
|
|
|
|
this.isspinning = true;
|
|
|
|
|
console.log(this.formvalue);
|
|
|
|
|
try {
|
|
|
|
|
newdata = {
|
|
|
|
|
agencyId: '3087',
|
|
|
|
|
agencyId: "3087",
|
|
|
|
|
recruitment: "1",
|
|
|
|
|
keys: '',
|
|
|
|
|
keys: "",
|
|
|
|
|
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 JobListApiYicai(newdata)
|
|
|
|
|
const { data } = await JobListApiYicai(newdata);
|
|
|
|
|
// console.log(data);
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
this.jobMainList = disposeJobListData(data.data.recordList)
|
|
|
|
|
this.jobMainList = disposeJobListData(data.data.recordList);
|
|
|
|
|
this.jobMainList.forEach((item, index) => {
|
|
|
|
|
item['servetype'] = setReturnFee(item.returnFee,item.returnFeeType);
|
|
|
|
|
})
|
|
|
|
|
this.formvalue.total = data.data.recordCount
|
|
|
|
|
console.log(this.jobMainList)
|
|
|
|
|
item["servetype"] = setReturnFee(item.returnFee, item.returnFeeType);
|
|
|
|
|
});
|
|
|
|
|
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')
|
|
|
|
|
localStorage.removeItem('DAOTIAN_token')
|
|
|
|
|
localStorage.removeItem('daotian_to_admin_token')
|
|
|
|
|
this.reload()
|
|
|
|
|
this.$router.push('/main')
|
|
|
|
|
localStorage.removeItem("LOGIN_DATA");
|
|
|
|
|
localStorage.removeItem("DAOTIAN_token");
|
|
|
|
|
localStorage.removeItem("daotian_to_admin_token");
|
|
|
|
|
this.reload();
|
|
|
|
|
this.$router.push("/main");
|
|
|
|
|
} else {
|
|
|
|
|
console.log(1)
|
|
|
|
|
console.log(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// this.fellowList = disposeJobListData(data.data.recordList);
|
|
|
|
|
@ -630,8 +629,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) {
|
|
|
|
|
@ -639,78 +638,78 @@ 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();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
goAdmin() {
|
|
|
|
|
let obj = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
|
console.log(JSON.stringify(obj.user))
|
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
|
let obj = JSON.parse(localStorage.getItem("LOGIN_DATA"));
|
|
|
|
|
console.log(JSON.stringify(obj.user));
|
|
|
|
|
if (window.location.hostname == "localhost") {
|
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
|
window.open('http://localhost:3000/#/main?token=' + obj.token + '&username=' + (obj.user.userName ? obj.user.userName : obj.user.nickName) + '&avatar=' + obj.imgSrc + '&roleid=' + obj.user.agencyRoleId + '&agencyid=' + obj.user.agencyId + '&userInfo=' + JSON.stringify(obj))
|
|
|
|
|
window.open("http://localhost:3000/#/login?token=" + obj.token + "&username=" + (obj.user.userName ? obj.user.userName : obj.user.nickName) + "&avatar=" + obj.imgSrc + "&roleid=" + obj.user.agencyRoleId + "&agencyid=" + obj.user.agencyId + "&userInfo=" + JSON.stringify(obj));
|
|
|
|
|
} else {
|
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
|
localStorage.setItem('daotian_to_admin', JSON.stringify(obj))
|
|
|
|
|
localStorage.setItem('daotian_to_admin_token', obj.token)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_avatar', obj.imgSrc)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_username', obj.user.userName ? obj.user.userName : obj.user.nickName)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_roleid', obj.user.agencyRoleId)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_agencyid', obj.user.agencyId)
|
|
|
|
|
if (window.location.origin.indexOf('www') > -1) {
|
|
|
|
|
window.open('http://www.idaotian.com/dist2.0.0/#/main')
|
|
|
|
|
localStorage.setItem("daotian_to_admin", JSON.stringify(obj));
|
|
|
|
|
localStorage.setItem("daotian_to_admin_token", obj.token);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_avatar", obj.imgSrc);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_username", obj.user.userName ? obj.user.userName : obj.user.nickName);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_roleid", obj.user.agencyRoleId);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_agencyid", obj.user.agencyId);
|
|
|
|
|
if (window.location.origin.indexOf("www") > -1) {
|
|
|
|
|
window.open("http://www.ibocai.cn/#/login?token=" + obj.token + "&username=" + (obj.user.userName ? obj.user.userName : obj.user.nickName) + "&avatar=" + obj.imgSrc + "&roleid=" + obj.user.agencyRoleId + "&agencyid=" + obj.user.agencyId + "&userInfo=" + JSON.stringify(obj));
|
|
|
|
|
} else {
|
|
|
|
|
window.open('http://idaotian.com/dist2.0.0/#/main')
|
|
|
|
|
window.open("http://ibocai.cn/#/login?token=" + obj.token + "&username=" + (obj.user.userName ? obj.user.userName : obj.user.nickName) + "&avatar=" + obj.imgSrc + "&roleid=" + obj.user.agencyRoleId + "&agencyid=" + obj.user.agencyId + "&userInfo=" + JSON.stringify(obj));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
goJiaofu() {
|
|
|
|
|
let obj = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
|
let obj = JSON.parse(localStorage.getItem("LOGIN_DATA"));
|
|
|
|
|
if (window.location.hostname == "localhost") {
|
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
|
window.open('http://localhost:3000/#/other/delivery?token=' + obj.token + '&username=' + (obj.user.userName ? obj.user.userName : obj.user.nickName) + '&avatar=' + obj.imgSrc + '&roleid=' + obj.user.agencyRoleId + '&agencyid=' + obj.user.agencyId + '&userInfo=' + JSON.stringify(obj))
|
|
|
|
|
window.open("http://localhost:3000/#/other/delivery?token=" + obj.token + "&username=" + (obj.user.userName ? obj.user.userName : obj.user.nickName) + "&avatar=" + obj.imgSrc + "&roleid=" + obj.user.agencyRoleId + "&agencyid=" + obj.user.agencyId + "&userInfo=" + JSON.stringify(obj));
|
|
|
|
|
} else {
|
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
|
localStorage.setItem('daotian_to_admin_token', obj.token)
|
|
|
|
|
localStorage.setItem('daotian_to_admin', JSON.stringify(obj))
|
|
|
|
|
localStorage.setItem('daotian_to_admin_avatar', obj.imgSrc)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_username', obj.user.userName ? obj.user.userName : obj.user.nickName)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_roleid', obj.user.agencyRoleId)
|
|
|
|
|
localStorage.setItem('daotian_to_admin_agencyid', obj.user.agencyId)
|
|
|
|
|
if (window.location.origin.indexOf('www') > -1) {
|
|
|
|
|
window.open('http://www.idaotian.com/dist2.0.0/#/other/delivery')
|
|
|
|
|
localStorage.setItem("daotian_to_admin_token", obj.token);
|
|
|
|
|
localStorage.setItem("daotian_to_admin", JSON.stringify(obj));
|
|
|
|
|
localStorage.setItem("daotian_to_admin_avatar", obj.imgSrc);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_username", obj.user.userName ? obj.user.userName : obj.user.nickName);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_roleid", obj.user.agencyRoleId);
|
|
|
|
|
localStorage.setItem("daotian_to_admin_agencyid", obj.user.agencyId);
|
|
|
|
|
if (window.location.origin.indexOf("www") > -1) {
|
|
|
|
|
window.open("http://www.ibocai.cn/#/other/delivery");
|
|
|
|
|
} else {
|
|
|
|
|
window.open('http://idaotian.com/dist2.0.0/#/other/delivery')
|
|
|
|
|
window.open("http://ibocai.cn/#/other/delivery");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|