zsk 1 year ago
commit a65dd2c7ba

@ -506,7 +506,7 @@
<span @click="toDetail(item)" style="cursor: pointer"> <span @click="toDetail(item)" style="cursor: pointer">
<div class="subsetleft" @click="totop"> <div class="subsetleft" @click="totop">
<div class="imgbox"> <div class="imgbox">
<img v-if="item.logo.length !== 0" :src="item.logo" style="object-fit: cover;width: 156px;height: 156px;" /> <img v-if="item.logo.length !== 0" :src="item.logo" style="object-fit: cover; width: 156px; height: 156px" />
<div v-else class="default_avatar">{{ item.brandName || item.jobName }}</div> <div v-else class="default_avatar">{{ item.brandName || item.jobName }}</div>
<!-- <img v-else src="../../../static/img/nopicture.png" /> --> <!-- <img v-else src="../../../static/img/nopicture.png" /> -->
</div> </div>
@ -518,13 +518,12 @@
>--> >-->
<div class="jobname">{{ item.jobName }}</div> <div class="jobname">{{ item.jobName }}</div>
<div class="xmfDiv"> <div class="xmfDiv">
<img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/xmfb.svg" class="" alt=""> <img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/xmfb.svg" class="" alt="" />
<span class="f12 ml4" style="color:#646572">{{item.agencyName}}</span> <span class="f12 ml4" style="color: #646572">{{ item.agencyName }}</span>
</div> </div>
<!-- <img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/ysd1.png" style="width: 20px;height: 20px;" alt=""> --> <!-- <img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/ysd1.png" style="width: 20px;height: 20px;" alt=""> -->
<!-- </router-link> --> <!-- </router-link> -->
<div class="jobinfo"> <div class="jobinfo">
<span>{{ item.district }}</span> <span>{{ item.district }}</span>
@ -550,7 +549,6 @@
>/ >/
</template> </template>
<template v-else> <template v-else>
<span>{{ item.minMonthlyPay ? item.minMonthlyPay / 100 : "" }}</span <span>{{ item.minMonthlyPay ? item.minMonthlyPay / 100 : "" }}</span
>-<span>{{ item.maxMonthlyPay ? item.maxMonthlyPay / 100 : "" }}</span >-<span>{{ item.maxMonthlyPay ? item.maxMonthlyPay / 100 : "" }}</span
>/ >/
@ -710,7 +708,7 @@
<!-- <div class="fcsc"> --> <!-- <div class="fcsc"> -->
<!-- <p>0371-6611 3723</p> --> <!-- <p>0371-6611 3723</p> -->
<img style="width: 60px; height: 60px; border-radius: 50%;display: block;margin: 24px auto 0;" :src="managerInfo.avatar || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg'" alt /> <img style="width: 60px; height: 60px; border-radius: 50%; display: block; margin: 24px auto 0" :src="managerInfo.avatar || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg'" alt />
<div style="color: #333; font-weight: 600"> <div style="color: #333; font-weight: 600">
<p class="f16" style="margin-top: 10px"> <p class="f16" style="margin-top: 10px">
{{ managerInfo.name }} {{ managerInfo.name }}
@ -1069,7 +1067,7 @@ export default {
minAge: "", minAge: "",
maxAge: "", maxAge: "",
managerInfo: {}, managerInfo: {},
hasTab:false, // hasTab: false, //
}; };
}, },
// //
@ -1204,12 +1202,11 @@ export default {
this.currentPage = info.pageNum ? info.pageNum : 1; this.currentPage = info.pageNum ? info.pageNum : 1;
} }
if(this.$route.query.tab == 1 || localStorage.getItem("hasTab")){ if (this.$route.query.tab == 1 || localStorage.getItem("hasTab")) {
this.signType = 1; this.signType = 1;
this.hasTab = true; this.hasTab = true;
//session //session
localStorage.setItem("hasTab", this.hasTab) localStorage.setItem("hasTab", this.hasTab);
} }
if (this.$route.query.type) { if (this.$route.query.type) {
@ -1364,13 +1361,12 @@ export default {
try { try {
let aId = ""; let aId = "";
if (window.location.origin.indexOf('localhost:') > -1 || window.location.origin.indexOf('test.') > -1){ if (window.location.origin.indexOf("localhost:") > -1 || window.location.origin.indexOf("test.") > -1) {
aId = "2743" aId = "2743";
}else{ } else {
aId = "3087" aId = "3087";
} }
newdata = { newdata = {
agencyId: aId, // agencyId: aId, //
recruitment: "1", recruitment: "1",
@ -1398,7 +1394,7 @@ export default {
this.jobMainList.forEach((item, index) => { this.jobMainList.forEach((item, index) => {
if (item.jobType == 2) { if (item.jobType == 2) {
item["servetype"] = setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType); item["servetype"] = setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType);
}else{ } else {
item["servetype"] = setReturnFee(item.returnFee, item.returnFeeType); item["servetype"] = setReturnFee(item.returnFee, item.returnFeeType);
} }
}); });
@ -1451,15 +1447,15 @@ export default {
} else { } else {
// this.formvalue.aliasName = this.searchValue.trim(); // this.formvalue.aliasName = this.searchValue.trim();
this.formvalue.keys = this.searchValue.trim(); this.formvalue.keys = this.searchValue.trim();
this.formvalue.ageStr = "" this.formvalue.ageStr = "";
} }
// console.log("search1"); // console.log("search1");
// this.formvalue.aliasName = this.searchValue; // this.formvalue.aliasName = this.searchValue;
// console.log(this.formvalue); // console.log(this.formvalue);
if(this.formvalue.signType == 1){ if (this.formvalue.signType == 1) {
this.getJobListYicai(); this.getJobListYicai();
}else{ } else {
this.getJobList(); this.getJobList();
} }
this.isdownHotStoreShow = false; this.isdownHotStoreShow = false;
@ -1787,7 +1783,7 @@ export default {
this.formvalue.aliasName = ""; this.formvalue.aliasName = "";
this.formvalue.keys = ""; this.formvalue.keys = "";
this.formvalue.ageStr = ""; this.formvalue.ageStr = "";
console.log('this.formvalue',this.formvalue); console.log("this.formvalue", this.formvalue);
if (this.formvalue.signType == 1) { if (this.formvalue.signType == 1) {
this.getJobListYicai(); this.getJobListYicai();
} else { } else {
@ -1901,7 +1897,7 @@ export default {
// //
// console.log(item); // console.log(item);
// let userinfo = JSON.stringify(item); // let userinfo = JSON.stringify(item);
sessionStorage.setItem("PAGE_TYPE", JSON.stringify({ id: item.id, pageNum: this.formvalue.pageNum, signType: this.signType,jobClassify:item.jobClassify })); sessionStorage.setItem("PAGE_TYPE", JSON.stringify({ id: item.id, pageNum: this.formvalue.pageNum, signType: this.signType, jobClassify: item.jobClassify }));
if (this.signType == "") { if (this.signType == "") {
this.$router.push({ name: "recordbill", params: item }); this.$router.push({ name: "recordbill", params: item });
@ -2044,7 +2040,8 @@ export default {
this.currentCity = item.name; this.currentCity = item.name;
// this.getJobList(); // this.getJobList();
this.visible = false; this.visible = false;
if (this.formvalue.signType != 0) { console.log('this.formvalue.signType',this.formvalue.signType);
if (this.signType != 0) {
this.getJobListYicai(); this.getJobListYicai();
} else { } else {
this.getJobList(); this.getJobList();
@ -2120,7 +2117,7 @@ export default {
*/ */
toDetail(item) { toDetail(item) {
// :to="signType == '' ? '/detail?id=' + item.id + '&page=' + formvalue.pageNum : '/detailYicai?id=' + item.id + '&page=' + formvalue.pageNum" // :to="signType == '' ? '/detail?id=' + item.id + '&page=' + formvalue.pageNum : '/detailYicai?id=' + item.id + '&page=' + formvalue.pageNum"
sessionStorage.setItem("PAGE_TYPE", JSON.stringify({ id: item.id, pageNum: this.formvalue.pageNum, signType: this.signType,jobClassify:item.jobClassify })); sessionStorage.setItem("PAGE_TYPE", JSON.stringify({ id: item.id, pageNum: this.formvalue.pageNum, signType: this.signType, jobClassify: item.jobClassify }));
const routeURL = this.$router.resolve({ const routeURL = this.$router.resolve({
name: this.signType == "" ? "Detail" : "DetailYicai", name: this.signType == "" ? "Detail" : "DetailYicai",
@ -3261,7 +3258,7 @@ export default {
line-height: 20px; line-height: 20px;
margin-left: 8px; margin-left: 8px;
} }
.xmfDiv{ .xmfDiv {
display: inline-block; display: inline-block;
height: 20px; height: 20px;
margin-top: 4px; margin-top: 4px;

@ -8,7 +8,10 @@ console.log('use message in request', vue);
// import Vue from "vue"; // import Vue from "vue";
// console.log('use message in request2', Vue); // console.log('use message in request2', Vue);
// const baseURL = "//idaotian.com"; // 正式环境线上 // const baseURL = "//idaotian.com"; // 正式环境线上
const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地
const baseURL = "//daotian.matripe.com.cn"; // 正式环境线上
// const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地
// console.log(data1.keys()); // console.log(data1.keys());
axios.defaults.withCredentials = true; //添加这行代码 axios.defaults.withCredentials = true; //添加这行代码
// 动态设置https协议,拼接到接口基础路径 // 动态设置https协议,拼接到接口基础路径
@ -33,13 +36,16 @@ service.interceptors.request.use(
// } // }
// } // }
req.headers.appId = "daotianpc";
if (localStorage.getItem("LOGIN_DATA")) { if (localStorage.getItem("LOGIN_DATA")) {
console.log('req', req); console.log('req', req);
console.log('req url', req.url); console.log('req url', req.url);
let appName = '稻田'
req.headers.Authorization = "Bearer " + localStorage.getItem("LOGIN_DATA_token"); req.headers.Authorization = "Bearer " + localStorage.getItem("LOGIN_DATA_token");
req.headers.agencyId = JSON.parse(localStorage.getItem("DAOTIAN_agencyid")) req.headers.agencyId = JSON.parse(localStorage.getItem("DAOTIAN_agencyid"))
req.headers.appId = "daotianpc"; // 请求来源标识 1.小程序 2.app 3.网页
req.headers.appClassify = 3
req.headers.appName = encodeURIComponent(appName)
req.headers["g-open-env"] = 'WEB-PAGE' req.headers["g-open-env"] = 'WEB-PAGE'
if (req.url == '/assistant/custom/job/v2/list') { if (req.url == '/assistant/custom/job/v2/list') {
req.headers.appId = '' req.headers.appId = ''
@ -87,6 +93,7 @@ service.interceptors.response.use(
} else if (response.data.status === 2002) {// 职位名称 } else if (response.data.status === 2002) {// 职位名称
// message.error('职位名称:请不要填写【' + response.data.msg + '】相关违禁内容'); // message.error('职位名称:请不要填写【' + response.data.msg + '】相关违禁内容');
console.log('response.data.status === 2002', response.data.status); console.log('response.data.status === 2002', response.data.status);
console.log(' vue.$message', vue.$message);
vue.$message.error(response.data.msg) vue.$message.error(response.data.msg)
// this.$message.error(response.data.msg); // this.$message.error(response.data.msg);
setTimeout(() => { setTimeout(() => {
@ -105,6 +112,19 @@ service.interceptors.response.use(
// code: 2002, // code: 2002,
// msg: response.data.msg // msg: response.data.msg
// }); // });
} else if (response.data.status == 9009) {
vue.$message.error(response.data.msg)
setTimeout(() => {
localStorage.removeItem("LOGIN_DATA");
localStorage.removeItem("LOGIN_DATA_token");
localStorage.removeItem("DAOTIAN_agencyid");
router.push("/login");
return Promise.reject(new Error(response.data.msg));
// 跳转到登录页面
// this.$message.warning(msg);
}, 2000);
} else { } else {
// Message.error(response.data.msg) // Message.error(response.data.msg)
// vue.$message.error(response.data.msg) // vue.$message.error(response.data.msg)

Loading…
Cancel
Save