diff --git a/src/components/FirstJob/detail.vue b/src/components/FirstJob/detail.vue index 117c903..0238601 100644 --- a/src/components/FirstJob/detail.vue +++ b/src/components/FirstJob/detail.vue @@ -332,14 +332,14 @@ 面试时间 {{ jobDetail.interviewDuration || "-" }} - + 面试说明 {{ jobDetail.interviewDesp || "-" }} @@ -409,7 +409,7 @@
-

+

{{ managerInfo.name }}

@@ -424,7 +424,7 @@

- 企业详情 + 企业详情

@@ -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) { diff --git a/src/components/FirstJob/detailYicai.vue b/src/components/FirstJob/detailYicai.vue index bb3aebd..db6846c 100644 --- a/src/components/FirstJob/detailYicai.vue +++ b/src/components/FirstJob/detailYicai.vue @@ -131,7 +131,7 @@ diff --git a/src/components/FirstJob/recordBillYicai.vue b/src/components/FirstJob/recordBillYicai.vue index 80d78ac..a2a3f46 100644 --- a/src/components/FirstJob/recordBillYicai.vue +++ b/src/components/FirstJob/recordBillYicai.vue @@ -1,31 +1,31 @@ diff --git a/src/utils/request.js b/src/utils/request.js index e61c59c..4194fe0 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -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