From 93d494892b5088e5c88c5e31caaba9a6d9e6f51a Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Tue, 18 Jun 2024 15:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=BB=E6=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FirstJob/detail.vue | 37 ++++++++++++++++++++++++++++++++++++- src/components/FirstJob/joblist.vue | 12 ++++++++++-- src/utils/request.js | 4 ++-- 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/src/components/FirstJob/detail.vue b/src/components/FirstJob/detail.vue index 3a44580..8754204 100644 --- a/src/components/FirstJob/detail.vue +++ b/src/components/FirstJob/detail.vue @@ -108,7 +108,12 @@
-
{{ jobDetail.jobName }}
+
{{ jobDetail.jobName }} + + + 主推 + +
{{ jobDetail.district }} {{ jobDetail.gender }} @@ -1320,6 +1325,36 @@ export default { display: flex; flex-direction: column; justify-content: space-between; + // .hotTag { + // display: flex; + // line-height: 44px; + // margin-left: 18px; + // div { + // font-size: 14px; + // } + // li { + // margin-right: 12px; + // color: #ff6a00; + // font-size: 14px; + // cursor: pointer; + // } + // > .active { + // text-decoration: underline; + // } + // } + .hotTag { + background-color: #f40; + color: #fff; + font-size: 12px; + padding:2px 4px; + border-radius: 2px; + position: relative; + top: -3px; + i { + margin-right: 4px; + color: #fff; + } + } .jobname { // margin: 12px 0; font-size: 20px; diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue index 015d605..8f12267 100644 --- a/src/components/FirstJob/joblist.vue +++ b/src/components/FirstJob/joblist.vue @@ -1362,9 +1362,17 @@ export default { this.isspinning = true; console.log(this.formvalue); try { + let aId = ""; + + if (window.location.origin.indexOf('localhost:') > -1 || window.location.origin.indexOf('test.') > -1){ + aId = "2743" + }else{ + aId = "3087" + } + + newdata = { - agencyId: "3087", //正式版 - // agencyId: "2743", //测试版 + agencyId: aId, //测试版 recruitment: "1", keys: "", pageNum: 1, diff --git a/src/utils/request.js b/src/utils/request.js index 8471bee..c5ddd8b 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -8,8 +8,8 @@ console.log('use message in request', vue); // import Vue from "vue"; // console.log('use message in request2', Vue); // const baseURL = "http://1shoudan.com"; // 正式环境线上 废弃 -const baseURL = "//idaotian.com"; // 正式环境线上 -// const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地 +// const baseURL = "//idaotian.com"; // 正式环境线上 +const baseURL = "//test.renminshitang.com.cn/daotian/api_dev"; // 测试环境本地 // const baseURL = "//idagou.cn"; // 正式环境线上 废弃 // console.log(baseURL); // const baseURL = "http://localhost:8001";