cyl/dev
wangxia 2 years ago
parent 8cb4398c80
commit cd7b91652c

@ -332,14 +332,14 @@
<span slot="label" class>面试时间</span>
<span>{{ jobDetail.interviewDuration || "-" }}</span>
</a-descriptions-item>
<a-descriptions-item class="test1">
<!-- <a-descriptions-item class="test1">
<span slot="label" class>面试地点</span>
<span>{{ jobPoses.interview.posContent || "-" }}</span>
</a-descriptions-item>
<a-descriptions-item class="test1">
<span slot="label" class>宿舍地址</span>
<span>{{ jobPoses.room.posContent ? jobPoses.room.posContent : "-" }}</span>
</a-descriptions-item>
</a-descriptions-item> -->
<a-descriptions-item class="test1">
<span slot="label" class>面试说明</span>
<span>{{ jobDetail.interviewDesp || "-" }}</span>
@ -409,7 +409,7 @@
</h1>
<img style="width: 60px; height: 60px; border-radius: 50%" class="mt24" :src="managerInfo.avatar || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg'" alt />
<div style="color: #333; font-weight: 600">
<p class="f16" style="margin-top: 10px;margin-bottom:0">
<p class="f16" style="margin-top: 10px; margin-bottom: 0">
{{ managerInfo.name }}
<i class="iconfont icon-dianhua1 ml4 f14" style="line-height: 24px; color: #ff4400"></i>
</p>
@ -506,8 +506,8 @@ export default {
jobDetail: {}, //
storeImage: [],
storeInfo: {},
id: this.$route.query.id,
currentPageNum: this.$route.query.page,
id: "",
currentPageNum: this.$route.query.page || "",
visible: false, //
xiangdanVisible: false, //
confirmLoading: false, // loading
@ -723,7 +723,16 @@ export default {
beforeCreate() {},
created() {
// console.log(this.$router.matcher.match());
if (sessionStorage.getItem("PAGE_TYPE")) {
this.id = JSON.parse(sessionStorage.getItem("PAGE_TYPE")).id;
this.currentPageNum = JSON.parse(sessionStorage.getItem("PAGE_TYPE")).pageNum;
console.log("PAGE_TYPE", JSON.parse(sessionStorage.getItem("PAGE_TYPE")));
}
if (this.$route.query.id) {
this.id = this.$route.query.id;
}
console.log("this.id ", this.id);
console.log("this.$route", this.$route); // params
if (this.$route.query.type) {
this.from = this.$route.query.type;
@ -789,6 +798,7 @@ export default {
//
methods: {
async getJobDetail() {
console.log("this.id", this.id);
try {
const { data } = await getJobDetailApi(this.id);
console.log("data", data);
@ -992,9 +1002,9 @@ export default {
//
this.$router.push({
path: this.from == "vocational" ? "/list?type=vocational" : "/list?",
query: {
pagenum: this.currentPageNum,
},
// query: {
// pagenum: this.currentPageNum || "",
// },
});
},
handlePreview(file) {

@ -131,7 +131,7 @@
</template>
<script>
import { getJobDetailYicaiApi } from "../../api/job";
import { disposeJobListData, getSalaryClassifyValue, isNotEmptyCheck,setReturnFee } from "../../utils/commonUtil";
import { disposeJobListData, getSalaryClassifyValue, isNotEmptyCheck, setReturnFee } from "../../utils/commonUtil";
import recommend from "../../components/FirstJob/components/recommend.vue";
import { nationlist } from "../../utils/datalist";
import { getUserManagerApi } from "../../api/userinfo";
@ -184,7 +184,7 @@ export default {
//
data() {
return {
retrunFee:"",
retrunFee: "",
previewVisible: false,
previewImage: "",
relationList: [],
@ -241,6 +241,12 @@ export default {
beforeCreate() {},
created() {
// console.log(this.$router.matcher.match());
if (sessionStorage.getItem("PAGE_TYPE")) {
this.id = JSON.parse(sessionStorage.getItem("PAGE_TYPE")).id;
this.currentPageNum = JSON.parse(sessionStorage.getItem("PAGE_TYPE")).pageNum;
console.log("PAGE_TYPE", JSON.parse(sessionStorage.getItem("PAGE_TYPE")));
}
this.getJobDetail();
console.log(this.$route); // params
this.getUserManager();
@ -306,10 +312,10 @@ export default {
console.log(data.data);
console.log(disposeJobListData(data.data));
this.jobDetail = disposeJobListData(data.data);
this.jobDetail.jobInfo = data.data.jobInfo.replaceAll('*****','')
this.jobDetail.jobInfo = data.data.jobInfo.replaceAll("*****", "");
this.jobDetail.maxMonthlyPayStr = this.jobDetail.maxMonthlyPay / 100
this.jobDetail.minMonthlyPayStr = this.jobDetail.minMonthlyPay / 100
this.jobDetail.maxMonthlyPayStr = this.jobDetail.maxMonthlyPay / 100;
this.jobDetail.minMonthlyPayStr = this.jobDetail.minMonthlyPay / 100;
this.store = data.data;
this.jobDetail.district = disposeJobListData(data.data).district;
this.retrunFee = setReturnFee(data.data.returnFee, data.data.returnFeeType);
@ -510,7 +516,7 @@ export default {
name: "JobList",
params: {
pagenum: this.currentPageNum,
signType: 1
signType: 1,
},
});
},

@ -501,7 +501,7 @@
>
<!-- v-if="signType == ''" -->
<router-link target="_blank" :to="signType == '' ? '/detail?id=' + item.id + '&page=' + formvalue.pageNum : '/detailYicai?id=' + item.id + '&page=' + formvalue.pageNum" rel="opener">
<span @click="toDetail(item)" style="cursor: pointer">
<div class="subsetleft" @click="totop">
<div class="imgbox">
<img v-if="item.logo.length !== 0" :src="item.logo" />
@ -558,7 +558,7 @@
</div>
</div>
</div>
</router-link>
</span>
<div class="subsetright">
<div class="topContainer">
<div class="updateTime" style="display: none">
@ -576,17 +576,18 @@
<span v-if="item.jobDesp" :class="'copyInfo' + index">{{ item.jobDesp }}</span
><span v-else></span>
</template>-->
<router-link target="_blank" :to="signType == '' ? '/detail?id=' + item.id + '&page=' + formvalue.pageNum : '/detailYicai?id=' + item.id + '&page=' + formvalue.pageNum" rel="opener">
<a>
<button
type="primary"
class="jobDesp br4"
:style="{
background: item.recruitment == '1' ? '#fff' : '#f5f5f5',
}"
@click="toDetail(item)"
>
更多
</button>
</router-link>
</a>
<!-- </a-popover> -->
<button class="apply br4" @click="torecord(item)" v-if="item.recruitment == '1'"></button>
<button class="norecruitment" v-else></button>
@ -1181,6 +1182,9 @@ export default {
},
deep: true,
},
"formvalue.pageNum"(val) {
sessionStorage.removeItem("PAGE_TYPE");
},
},
//
@ -1191,8 +1195,13 @@ export default {
created() {
// console.log(this.proxyinfo);
console.log(this.$route);
this.currentPage = this.$route.query.pagenum;
this.signType = this.$route.query.signType ? this.$route.query.signType : "";
window.addEventListener("beforeunload", (e) => this.removePageInfo());
if (sessionStorage.getItem("PAGE_TYPE")) {
let info = JSON.parse(sessionStorage.getItem("PAGE_TYPE"));
this.signType = info.signType ? info.signType : "";
this.currentPage = info.pageNum ? info.pageNum : 1;
}
if (this.$route.query.type) {
if (this.$route.query.type == "vocational") {
this.isVocational = true;
@ -1242,8 +1251,19 @@ export default {
this.loginValue = localStorage.getItem("LOGIN_DATA") !== null ? JSON.parse(localStorage.getItem("LOGIN_DATA")) : { tel: "" };
console.log(this.loginValue);
},
beforeDestroy() {
console.log("beforeDestroy");
// sessionStorage.removeItem("PAGE_TYPE")
},
destroyed() {
window.removeEventListener("beforeunload", (e) => this.removePageInfo(e));
},
//
methods: {
removePageInfo() {
sessionStorage.removeItem("PAGE_TYPE");
},
//
// filterbox() {
// return () => {
@ -1844,6 +1864,8 @@ export default {
//
// console.log(item);
// let userinfo = JSON.stringify(item);
sessionStorage.setItem("PAGE_TYPE", JSON.stringify({ id: item.id, pageNum: this.formvalue.pageNum, signType: this.signType }));
if (this.signType == "") {
this.$router.push({ name: "recordbill", params: item });
sessionStorage.setItem("CURRENT_FIRM", JSON.stringify(item));
@ -2041,14 +2063,20 @@ export default {
this.formvalue.provinceName = "";
this.getJobList();
},
// todetail(item) {
// const routeURL = this.$router.resolve({
// name: "Detail",
/**
* 前往详情页
*/
toDetail(item) {
// :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 }));
const routeURL = this.$router.resolve({
name: this.signType == "" ? "Detail" : "DetailYicai",
// query: item.id,
// });
// window.open(routeURL.href, "_blank");
// console.log(item);
// },
});
window.open(routeURL.href, "_blank");
console.log(item);
},
hideFilterContent() {
setTimeout(() => {
let fileterContent = document.querySelector(".filter-content");

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -6,10 +6,10 @@ import qs from "qs";
// import Vue from "vue";
// const baseURL = "http://1shoudan.com"; // 正式环境线上 废弃
const baseURL = "//idaotian.com"; // 正式环境线上
// const baseURL = "//idagou.cn"; // 正式环境线上
// const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地
// const baseURL = "//idagou.cn"; // 正式环境线上 废弃
// console.log(baseURL);
// const baseURL = "https://d.matripe.com.cn"; // 正式环境本地
// const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地
// const baseURL = "http://1shoudan.renminshitang.com.cn"; // 测试环境线上
// const baseURL = "http://localhost:8001";
// const data1 = require.context("./", false, /\.js$/); // 测试用
@ -39,6 +39,9 @@ service.interceptors.request.use(
if (localStorage.getItem("LOGIN_DATA")) {
req.headers.Authorization = "Bearer " + JSON.parse(localStorage.getItem("LOGIN_DATA")).token;
req.headers.appId = "daotianpc";
req.headers["g-open-env"]= 'WEB-PAGE',
console.log('getToken++++++++++++++++++++++++++++++++++++++++++++++++++++');
}
// application/json

Loading…
Cancel
Save