From 0841531deab5ae12339dfbfc2761088acd74eec9 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Mon, 25 Mar 2024 09:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8C=E6=95=99=E6=8A=A5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FirstJob/components/vocationalRecord.vue | 19 ++-- src/components/FirstJob/detail.vue | 91 +++++++++------- src/components/FirstJob/joblist.vue | 48 ++++----- src/utils/request.js | 116 +++++++++++---------- src/views/main.vue | 2 +- vue.config.js | 2 +- 6 files changed, 147 insertions(+), 131 deletions(-) diff --git a/src/components/FirstJob/components/vocationalRecord.vue b/src/components/FirstJob/components/vocationalRecord.vue index 8aaf904..3625f17 100644 --- a/src/components/FirstJob/components/vocationalRecord.vue +++ b/src/components/FirstJob/components/vocationalRecord.vue @@ -52,15 +52,12 @@ - - - - + + + @@ -107,7 +104,7 @@ export default { // /^((?![\u3000-\u303F])[\u2E80-\uFE4F]|·)*(?![\u3000-\u303F])[\u2E80-\uFE4F](·)*$/, // 姓名校验规则 /^(((?![\u3000-\u303F])[\u2E80-\uFE4F]|·)*(?![\u3000-\u303F])[\u2E80-\uFE4F][^·]{1,12})$/, // 姓名校验规则 message: "请输入正确的姓名", - trigger: "submit", + trigger: "blur", }, ], tel: [ @@ -119,16 +116,16 @@ export default { { pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/, message: "请输入正确的手机号", - trigger: "submit", + trigger: "blur", }, ], gender: [{ required: true, message: "请选择性别", trigger: "submit" }], age: [ { required: true, message: "请输入年龄", trigger: "submit" }, { - pattern: /^(1[69]|[2-5][0-9]|60)$/, + pattern: /^(1[6-9]|[2-5][0-9]|60)$/, message: "请输入16-60之间的纯数字", - trigger: "submit", + trigger: "blur", }, ], }, @@ -248,7 +245,7 @@ export default { logo: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job3.png", tuition: "19800元", serviceCharge: "6500元/人", - salary: "20万/年", + salary: "9000-11000元/月", enterprise: "", semester: "90天", totalProfit: "8000元/人", diff --git a/src/components/FirstJob/detail.vue b/src/components/FirstJob/detail.vue index dce2f2b..117c903 100644 --- a/src/components/FirstJob/detail.vue +++ b/src/components/FirstJob/detail.vue @@ -28,12 +28,12 @@
{{ jobDetail.vocationalName }}
- +
{{ jobDetail.vocationalName }}
- {{ jobDetail.district || "航空港区" }} + {{ jobDetail.district || "河南省 | 郑州市 | 16-35岁" }} @@ -42,15 +42,16 @@ 工作薪资:{{ jobDetail.salary }}
-
- 学费{{ jobDetail.tuition }} +
+ 学费{{ jobDetail.tuition }} + | 课期{{ jobDetail.semester }}
-
+
@@ -96,6 +97,8 @@
+
+
@@ -405,16 +408,23 @@ 客户经理 -

{{ managerInfo.workPhone || "-" }}

+
+

+ {{ managerInfo.name }} + +

+

{{ managerInfo.workPhone || "-" }}

+
+
-
+

- 企业详情 + 企业详情

@@ -428,7 +438,6 @@
-
@@ -536,12 +545,13 @@ export default { customServiceUrl: "", // 客服信息 from: null, // 来源 recordShow: false, + vocationalImgList: ["https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job1.png", "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job2.png", "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job3.png", "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job4.png", "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job5.png", "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job6.png"], zhijiaoList: [ // 职教列表 { id: 0, vocationalName: "电气工程师(初级班)", - logo:'https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job1.png', + logo: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job1.png", tuition: "6800元", serviceCharge: "2000元/人", salary: "7000-9000元/月", @@ -594,7 +604,7 @@ export default { { id: 1, vocationalName: "调试工程师(中级班)", - logo:'https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job2.png', + logo: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job2.png", tuition: "11800元", serviceCharge: "3000元/人", salary: "8000-11000元/月", @@ -649,10 +659,10 @@ export default { { id: 2, vocationalName: "运营管理团队(高级班)", - logo:'https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job3.png', + logo: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/zhijiao/job3.png", tuition: "19800元", serviceCharge: "6500元/人", - salary: "20万/年", + salary: "9000-11000元/月", enterprise: "", semester: "90天", totalProfit: "8000元/人", @@ -714,12 +724,12 @@ export default { created() { // console.log(this.$router.matcher.match()); - console.log('this.$route',this.$route); // 获取传过来的params数据 + console.log("this.$route", this.$route); // 获取传过来的params数据 if (this.$route.query.type) { this.from = this.$route.query.type; - this.jobDetail = this.zhijiaoList.find((item)=>item.id == this.$route.query.id); + this.jobDetail = this.zhijiaoList.find((item) => item.id == this.$route.query.id); this.skeletonshow = false; - console.log(this.jobDetail); + console.log(this.jobDetail); } else { this.getJobDetail(); } @@ -822,6 +832,7 @@ export default { } }); this.storeImage = [...storeImage, ...storeVideo]; + console.log("this.storeImage", this.storeImage); } else { this.$message.warning("数据获取失败"); } @@ -935,11 +946,19 @@ export default { showImage(idx) { var that = this; console.log(that.storeImage); - that.storeImage.forEach((item, index) => { - if (that.isImg(item)) { - that.imgList.push(item); - } - }); + if (this.from == "vocational") { + that.vocationalImgList.forEach((item, index) => { + if (that.isImg(item)) { + that.imgList.push(item); + } + }); + } else { + that.storeImage.forEach((item, index) => { + if (that.isImg(item)) { + that.imgList.push(item); + } + }); + } this.$viewerApi({ options: { initialViewIndex: idx }, @@ -972,8 +991,8 @@ export default { toList() { // 跳转到列表页 this.$router.push({ - name: "JobList", - params: { + path: this.from == "vocational" ? "/list?type=vocational" : "/list?", + query: { pagenum: this.currentPageNum, }, }); @@ -1178,7 +1197,7 @@ export default { } .jobinfo { margin-top: 12px; - font-size: 18px; + font-size: 16px; font-weight: 400; text-align: left; color: #999; @@ -1211,7 +1230,7 @@ export default { } .jobpricemonth { // margin-top: 16px; - font-size: 18px; + font-size: 16px; font-weight: 400; text-align: left; color: #666; @@ -1618,16 +1637,16 @@ export default { border-radius: 6px; background-color: #fff; text-align: center; - p { - position: absolute; - width: 100%; - font-size: 20px; - color: #333; - font-weight: 600; - top: 75%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - } + // p { + // position: absolute; + // width: 100%; + // font-size: 20px; + // color: #333; + // font-weight: 600; + // top: 75%; + // left: 50%; + // transform: translateX(-50%) translateY(-50%); + // } } .companyinfo { overflow: hidden; diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue index 935b556..ff418db 100644 --- a/src/components/FirstJob/joblist.vue +++ b/src/components/FirstJob/joblist.vue @@ -634,15 +634,16 @@
{{ item.vocationalName }}
- {{ item.district || "航空港区" }} + {{ item.district || "河南省 | 郑州市 | 16-35岁" }}
-
+
工作薪资:{{ item.salary }}
学费{{ item.tuition }} + | 课期{{ item.semester }}
@@ -666,7 +667,7 @@ type="primary" class="jobDesp br4" :style="{ - background:'#fff', + background: '#fff', }" > 更多 @@ -709,11 +710,13 @@ -

{{ managerInfo.workPhone || "-" }}

-

- {{ managerInfo.name }} - -

+
+

+ {{ managerInfo.name }} + +

+

{{ managerInfo.workPhone || "-" }}

+