From f0ca39e538379a573b017ac4a921c37762716bcf Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Fri, 12 Jan 2024 16:03:21 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/main.vue b/src/views/main.vue index 7aa650c..58b3576 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -109,7 +109,7 @@ --> - +
商家后台 From 2cf70007a683c3746d25d9cd70959fbeff105ae2 Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Wed, 17 Jan 2024 15:27:33 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E6=89=8D?= =?UTF-8?q?=E8=81=8C=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/job.js | 27 + src/components/FirstJob/detailYicai.vue | 1407 ++++++++++++++++++++++ src/components/FirstJob/joblist.vue | 83 +- src/components/FirstJob/recordBillYicai.vue | 1679 +++++++++++++++++++++++++++ src/router/index.js | 13 + src/utils/commonUtil.js | 2 +- src/views/main.vue | 51 + 7 files changed, 3229 insertions(+), 33 deletions(-) create mode 100644 src/components/FirstJob/detailYicai.vue create mode 100644 src/components/FirstJob/recordBillYicai.vue diff --git a/src/api/job.js b/src/api/job.js index 28a9bb2..b17f3e3 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -13,6 +13,17 @@ export function JobListApi(data) { data: setqs(data), }); } + +// 获取职位列表 +export function JobListApiYicai(data) { + return request({ + url: "/assistant/custom/job/v2/list", + method: "post", + // data: setqs(data), + // headers: { "Content-Type": "application/x-www-form-urlencoded" }, + data: setqs(data), + }); +} // 获取职位详情 export function getJobDetailApi(data) { return request({ @@ -20,6 +31,13 @@ export function getJobDetailApi(data) { method: "get", }); } +// 获取职位详情 +export function getJobDetailYicaiApi(data) { + return request({ + url: `/assistant/custom/job/v2/detail/${data}`, + method: "get", + }); +} // 获取职位特色 export function getJobSpecialApi() { return request({ @@ -50,6 +68,15 @@ export function recordBillApi(data) { headers: { "Content-Type": "application/x-www-form-urlencoded" }, }); } +// 一才录单报名 +export function recordBillYicaiApi(data) { + return request({ + url: "/assistant/apply/handler/add", + method: "post", + data:data, + headers: { "Content-Type": "application/x-www-form-urlencoded" }, + }); +} // 报名上传识别身份证信息 export function getIdCardInfoApi(data) { return request({ diff --git a/src/components/FirstJob/detailYicai.vue b/src/components/FirstJob/detailYicai.vue new file mode 100644 index 0000000..4bc9d55 --- /dev/null +++ b/src/components/FirstJob/detailYicai.vue @@ -0,0 +1,1407 @@ + + + + diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue index cb94ed4..61502be 100644 --- a/src/components/FirstJob/joblist.vue +++ b/src/components/FirstJob/joblist.vue @@ -215,10 +215,10 @@
全部
- +
一才
-
+
@@ -404,11 +404,14 @@
- + + + +
-
{{item.brandName}}
+
{{item.brandName || item.jobName}}
@@ -435,7 +438,7 @@ {{ item1 }} 暂无特色
-
+
{{ item.minMonthlyPay ? item.minMonthlyPay : "" }}- @@ -555,7 +558,7 @@ import Clipboard from 'clipboard' // import recordbill from "@/components/FirstJob/components/recordbill.vue"; export default { // 注入获取职位列表的方法 - inject: ['getJobList', 'reload'], + inject: ['getJobList','getJobListYicai', 'reload'], // 组件名称 name: '', // 局部注册的组件 @@ -623,6 +626,7 @@ export default { proxyinfo: JSON.parse(localStorage.getItem('LOGIN_DATA')), nationlist: nationlist, specialHotTag: [], + loginValue:{}, dateinfo: { day: '', week: '', @@ -816,39 +820,47 @@ export default { // console.log(this.proxyinfo); // console.log(this.$route); this.currentPage = this.$route.params.pagenum + this.signType = this.$route.params.signType ? this.$route.params.signType : '' if (this.currentPage) { // console.log(this.currentPage); this.formvalue.pageNum = this.currentPage } - // this.reload(); - this.getJobList() - this.getJobSpecial() - this.getProvince() - this.getdateinfo() - this.getHotCity() - this.getCityWhichHasJob() - this.getHotStore() - this.getClassifyList() - this.getUserManager() - this.hideFilterContent() - if (isNotEmptyCheck(localStorage.getItem('POSITION_INFO'))) { - let position = JSON.parse(localStorage.getItem('POSITION_INFO')) - let diffTime = new Date().getTime() - JSON.parse(localStorage.getItem('POSITION_INFO')).timestamp - if (diffTime / 3600000 > 24) { - this.getPosition() + if(this.signType == ''){ + this.getJobList() + this.getJobSpecial() + this.getProvince() + this.getdateinfo() + this.getHotCity() + this.getCityWhichHasJob() + this.getHotStore() + this.getClassifyList() + this.getUserManager() + this.hideFilterContent() + if (isNotEmptyCheck(localStorage.getItem('POSITION_INFO'))) { + let position = JSON.parse(localStorage.getItem('POSITION_INFO')) + let diffTime = new Date().getTime() - JSON.parse(localStorage.getItem('POSITION_INFO')).timestamp + if (diffTime / 3600000 > 24) { + this.getPosition() + } else { + this.lng = position.lng + this.lat = position.lat + } } else { - this.lng = position.lng - this.lat = position.lat + this.getPosition() } - } else { - this.getPosition() + }else{ + this.getJobListYicai() } + }, /** * el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。 * 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。 */ - mounted() {}, + mounted() { + this.loginValue = localStorage.getItem('LOGIN_DATA') !== null ? JSON.parse(localStorage.getItem('LOGIN_DATA')) : { tel: '' } + console.log(this.loginValue) + }, // 组件方法 methods: { // 处理筛选框的定位 @@ -1067,11 +1079,13 @@ export default { if (e.target.dataset.type != undefined) { if (e.target.dataset.type != 0) { this.formvalue.signType = this.signType = e.target.dataset.type + this.getJobListYicai() } else { this.formvalue.signType = this.signType = '' + this.formvalue.pageNum = 1 + this.getJobList() } - this.formvalue.pageNum = 1 - this.getJobList() + } }, async getJobSpecialList() { @@ -1334,9 +1348,14 @@ export default { // 跳转到路由新页面的方法 // console.log(item); // let userinfo = JSON.stringify(item); - - this.$router.push({ name: 'recordbill', params: item }) - sessionStorage.setItem('CURRENT_FIRM', JSON.stringify(item)) + if(this.signType == ''){ + this.$router.push({ name: 'recordbill', params: item }) + sessionStorage.setItem('CURRENT_FIRM', JSON.stringify(item)) + }else if(this.signType == '1'){ + this.$router.push({ name: 'recordbillYicai', params: item }) + sessionStorage.setItem('CURRENT_FIRM_YICAI', JSON.stringify(item)) + } + }, getSalaryClassifyValue(salaryClassify, salaryClassifyValue) { return getSalaryClassifyValue(salaryClassify, salaryClassifyValue) diff --git a/src/components/FirstJob/recordBillYicai.vue b/src/components/FirstJob/recordBillYicai.vue new file mode 100644 index 0000000..cdc51a1 --- /dev/null +++ b/src/components/FirstJob/recordBillYicai.vue @@ -0,0 +1,1679 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index 7e4149e..816a9b8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -34,6 +34,11 @@ const routes = [ name: "Detail", component: () => import("../components/FirstJob/detail.vue"), }, + { + path: "/detailYicai", + name: "DetailYicai", + component: () => import("../components/FirstJob/detailYicai.vue"), + }, // { // path: "/serviceoutlets", // name: "serviceoutlets", @@ -58,6 +63,14 @@ const routes = [ // which is lazy-loaded when the route is visited. component: () => import("../components/FirstJob/recordBill.vue"), }, + { + path: "/recordbillYicai", + name: "recordbillYicai", + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => import("../components/FirstJob/recordBillYicai.vue"), + }, { path: "/recordsuccess", name: "recordsuccess", diff --git a/src/utils/commonUtil.js b/src/utils/commonUtil.js index 32814ea..bc7ef26 100644 --- a/src/utils/commonUtil.js +++ b/src/utils/commonUtil.js @@ -1052,7 +1052,7 @@ export function formatDateYMDHM (val) { } function getJobSpecialLabelNamesArray (jobSpecialLabelNames) { if (isNotEmptyCheck(jobSpecialLabelNames)) { - return jobSpecialLabelNames.split(", "); + return new String(jobSpecialLabelNames).split(", "); } return []; } diff --git a/src/views/main.vue b/src/views/main.vue index 58b3576..a55316c 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -240,6 +240,7 @@ import Cookies from 'js-cookie' import { JobListApi, + JobListApiYicai // getCityApi, } from '../api/job' @@ -251,6 +252,7 @@ export default { provide() { return { getJobList: this.getJobList, + getJobListYicai: this.getJobListYicai, logout: this.logout, } }, @@ -400,6 +402,7 @@ export default { this.isLogin = true } this.getJobList() + this.getJobListYicai() this.isLaoxiangshow() this.getRecommendJob() this.showfooter() @@ -517,6 +520,54 @@ export default { this.isspinning = false }, + // 获取一才工作列表 + async getJobListYicai(newdata) { + this.isspinning = true + console.log(this.formvalue) + try { + newdata = { + agencyId: '3087', + recruitment:"1", + keys: '', + pageNum: 1, + pageSize: 8, + total: null, //分页配置 + } + for (var k in this.formvalue) { + // console.log(this.formvalue[k]); + if (Array.isArray(this.formvalue[k])) { + newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : '' + } else { + newdata[k] = this.formvalue[k] + } + } + // console.log(newdata); + // debugger; + // console.log(this.isLogin); + if (this.isLogin) { + const { data } = await JobListApiYicai(newdata) + // console.log(data); + if (data.status === 200) { + this.jobMainList = disposeJobListData(data.data.recordList) + this.formvalue.total = data.data.recordCount + console.log(this.jobMainList) + } else { + this.$message.info('数据获取失败') + } + } + this.totop() + // = data.data.recordList; + // console.log(this.formvalue); + } catch (error) { + console.log(error) + } + this.isspinning = false + }, + + + + + totop() { // console.log(window); document.body.scrollTop = 0 From 8f4d5a98390ee48e5c13d128cc1413dda227973d Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Wed, 17 Jan 2024 15:46:14 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E6=89=8D?= =?UTF-8?q?=E8=81=8C=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FirstJob/components/recordSuccess.vue | 2 +- src/components/FirstJob/detailYicai.vue | 6 ++++-- src/components/FirstJob/joblist.vue | 4 +++- src/views/main.vue | 5 ++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/FirstJob/components/recordSuccess.vue b/src/components/FirstJob/components/recordSuccess.vue index e968474..1ee49ce 100644 --- a/src/components/FirstJob/components/recordSuccess.vue +++ b/src/components/FirstJob/components/recordSuccess.vue @@ -91,7 +91,7 @@ export default { // 组件方法 methods: { onClose() { - this.$router.push("/detail?id=" + this.firminfo.id); + this.$router.go(-1); }, handleOk() { this.$router.push("/mybill"); diff --git a/src/components/FirstJob/detailYicai.vue b/src/components/FirstJob/detailYicai.vue index 4bc9d55..68866bf 100644 --- a/src/components/FirstJob/detailYicai.vue +++ b/src/components/FirstJob/detailYicai.vue @@ -98,7 +98,7 @@
服务费
- {{ jobDetail.servetype }} + {{ retrunFee }}
@@ -131,7 +131,7 @@