cyl/dev
wangxia 2 years ago
parent 672c05bc55
commit e8c26a92ae

@ -223,8 +223,8 @@
<div class="tabBar" @click="changeTab($event)"> <div class="tabBar" @click="changeTab($event)">
<div class="tabSubset" :class="{ active: signType == '' }" v-if="!hasTab" data-type="0"></div> <div class="tabSubset" :class="{ active: signType == '' }" v-if="!hasTab" data-type="0"></div>
<div class="tabSubset" :class="{ active: signType == 1 }" v-if="loginValue.agencyName == '郑州一才工作' || loginValue.agencyName == '一才工作'" data-type="1"></div> <div class="tabSubset" :class="{ active: signType == 1 }" v-if="loginValue.agencyName == '郑州一才工作' || loginValue.agencyName == '一才工作'" data-type="1"></div>
<!-- v-if="loginValue.agencyName == '郑州一才工作' || loginValue.agencyName == '一才工作'" --> <!-- v-if="loginValue.agencyName == '郑州一才工作' || loginValue.agencyName == '一才工作'" -->
<!-- v-if="loginValue.agencyName == '郑州一才工作' || loginValue.agencyName == '一才工作'" --> <!-- v-if="loginValue.agencyName == '郑州一才工作' || loginValue.agencyName == '一才工作'" -->
<!-- <div class="tabSubset" :class="{ active: signType == 2 }" data-type="2">三方</div> --> <!-- <div class="tabSubset" :class="{ active: signType == 2 }" data-type="2">三方</div> -->
</div> </div>
<div class="filter" v-show="signType == ''" :class="[filterStatus == 0 ? '' : 'nobd']" style> <div class="filter" v-show="signType == ''" :class="[filterStatus == 0 ? '' : 'nobd']" style>
@ -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>
@ -517,13 +517,12 @@
rel="opener" rel="opener"
>--> >-->
<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">
@ -541,16 +540,15 @@
</span> </span>
<span v-for="(item1, index) in item.jobSpecialLabelNames" :key="index">{{ item1 }}</span> <span v-for="(item1, index) in item.jobSpecialLabelNames" :key="index">{{ item1 }}</span>
<span v-if="item.jobSpecialLabelNames.length == 0"></span> <span v-if="item.jobSpecialLabelNames.length == 0"></span>
</div> </div>
<div class="jobpricehour" v-html="getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue)"></div> <div class="jobpricehour" v-html="getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue)"></div>
<div class="jobpricemonth" v-if="item.minMonthlyPay"> <div class="jobpricemonth" v-if="item.minMonthlyPay">
<template v-if="signType != 1"> <template v-if="signType != 1">
<span>{{ item.minMonthlyPay ? item.minMonthlyPay : "" }}</span <span>{{ item.minMonthlyPay ? item.minMonthlyPay : "" }}</span
>-<span>{{ item.maxMonthlyPay ? item.maxMonthlyPay : "" }}</span >-<span>{{ item.maxMonthlyPay ? item.maxMonthlyPay : "" }}</span
>/ >/
</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,13 +1202,12 @@ 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) {
if (this.$route.query.type == "vocational") { if (this.$route.query.type == "vocational") {
@ -1362,14 +1359,13 @@ export default {
this.isspinning = true; this.isspinning = true;
console.log(this.formvalue); console.log(this.formvalue);
try { try {
let aId = ""; let aId = "";
if (window.location.origin.indexOf('localhost:') > -1 || window.location.origin.indexOf('test.') > -1){
aId = "2743"
}else{
aId = "3087"
}
if (window.location.origin.indexOf("localhost:") > -1 || window.location.origin.indexOf("test.") > -1) {
aId = "2743";
} else {
aId = "3087";
}
newdata = { newdata = {
agencyId: aId, // agencyId: aId, //
@ -1396,11 +1392,11 @@ export default {
if (data.status === 200) { if (data.status === 200) {
this.jobMainList = disposeJobListData(data.data.recordList); this.jobMainList = disposeJobListData(data.data.recordList);
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);
} }
}); });
this.formvalue.total = data.data.recordCount; this.formvalue.total = data.data.recordCount;
console.log(this.jobMainList); console.log(this.jobMainList);
@ -1447,21 +1443,21 @@ export default {
console.log(this.searchValue); console.log(this.searchValue);
if (typeof +this.searchValue.trim() == "number" && !isNaN(+this.searchValue.trim())) { if (typeof +this.searchValue.trim() == "number" && !isNaN(+this.searchValue.trim())) {
this.formvalue.ageStr = this.searchValue.trim(); this.formvalue.ageStr = this.searchValue.trim();
this.formvalue.keys = ""; this.formvalue.keys = "";
} 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,8 +1783,8 @@ 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 {
this.getJobList(); this.getJobList();
@ -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,11 +2040,12 @@ 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);
this.getJobListYicai(); if (this.signType != 0) {
} else { this.getJobListYicai();
this.getJobList(); } else {
} this.getJobList();
}
}, },
getHotStoreList(item) { getHotStoreList(item) {
// console.log(item); // console.log(item);
@ -2066,11 +2063,11 @@ export default {
this.currentCity = "全国"; this.currentCity = "全国";
// console.log(this.formvalue); // console.log(this.formvalue);
// this.getJobList(); // this.getJobList();
if (this.formvalue.signType != 0) { if (this.formvalue.signType != 0) {
this.getJobListYicai(); this.getJobListYicai();
} else { } else {
this.getJobList(); this.getJobList();
} }
}, },
copyText(event, ind) { copyText(event, ind) {
// //
@ -2109,18 +2106,18 @@ export default {
this.formvalue.levelType = ""; this.formvalue.levelType = "";
this.formvalue.provinceName = ""; this.formvalue.provinceName = "";
// this.getJobList(); // this.getJobList();
if (this.formvalue.signType != 0) { if (this.formvalue.signType != 0) {
this.getJobListYicai(); this.getJobListYicai();
} else { } else {
this.getJobList(); this.getJobList();
} }
}, },
/** /**
* 前往详情页 * 前往详情页
*/ */
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",
@ -3252,31 +3249,31 @@ export default {
} }
} }
.jobpricemonth { .jobpricemonth {
display: inline-block; display: inline-block;
margin-top: 10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
text-align: left; text-align: left;
color: #333; color: #333;
line-height: 20px; line-height: 20px;
margin-left: 8px; margin-left: 8px;
}
.xmfDiv {
display: inline-block;
height: 20px;
margin-top: 4px;
background: #f1faff;
border-radius: 2px;
line-height: 16px;
padding-right: 4px;
} }
.xmfDiv{
display: inline-block;
height: 20px;
margin-top: 4px;
background: #f1faff;
border-radius: 2px;
line-height: 16px;
padding-right: 4px;
}
.jobpricehour { .jobpricehour {
margin-top: 8px; margin-top: 8px;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
text-align: left; text-align: left;
color: #ff4400; color: #ff4400;
display: inline-block; display: inline-block;
// line-height: 24px; // line-height: 24px;
font-weight: 600; font-weight: 600;
span { span {

@ -10,8 +10,8 @@ console.log('use message in request', vue);
// const baseURL = "//idaotian.com"; // 正式环境线上 // const baseURL = "//idaotian.com"; // 正式环境线上
// const baseURL = "//daotian.matripe.com.cn"; // 正式环境线上 const baseURL = "//daotian.matripe.com.cn"; // 正式环境线上
const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地 // 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协议,拼接到接口基础路径

Loading…
Cancel
Save