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/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
new file mode 100644
index 0000000..68866bf
--- /dev/null
+++ b/src/components/FirstJob/detailYicai.vue
@@ -0,0 +1,1409 @@
+
+
+
+
+
+
+
+
+
+
+
+ 一才职位
+
+
+
+ 职位详情
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
{{ store.jobName }}
+
+
+
+
{{ jobDetail.jobName }}
+
+ {{ store.district }}
+ {{ jobDetail.gender }}
+ {{ jobDetail.age }}
+
+
+
+
+
+
+
+
+ |
+
+ {{ jobDetail.minMonthlyPay }}- {{ jobDetail.maxMonthlyPay }}元/月
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
服务费
+
+ {{ retrunFee }}
+
+
+
+
+
+
+
+
+
+
+
+
职位详情
+
{{ jobDetail.jobInfo || "-" }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue
index e9e57f3..596c596 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 : "" }}-
@@ -471,7 +474,7 @@
{{ item.jobDesp }}暂无详单
-->
-
+
@@ -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,12 +820,18 @@ 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()
+ if(this.signType == ''){
+ this.getJobList()
+
+ }else{
+ this.getJobListYicai()
+ }
+
this.getJobSpecial()
this.getProvince()
this.getdateinfo()
@@ -843,12 +853,16 @@ export default {
} else {
this.getPosition()
}
+
},
/**
* 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 +1081,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 +1350,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)
@@ -1422,7 +1443,9 @@ export default {
this.classifyList = data.data.labels
this.$nextTick(() => {
let fileterContent = document.querySelector('.filter-content')
- this.filterHeight = fileterContent.scrollHeight
+ if(isNotEmptyCheck(fileterContent.scrollHeight)){
+ this.filterHeight = fileterContent.scrollHeight
+ }
// fileterContent.style.height = this.filterHeight + "px";
})
}
diff --git a/src/components/FirstJob/recordBillYicai.vue b/src/components/FirstJob/recordBillYicai.vue
new file mode 100644
index 0000000..7dd0feb
--- /dev/null
+++ b/src/components/FirstJob/recordBillYicai.vue
@@ -0,0 +1,1681 @@
+
+
+
+
+
+
+
+
+
+
+
+ 一手职位
+
+
+
+
+
+ 企业详情
+
+
+
+ 报名
+
+
+
+
+
+
+
+
{{ proxyinfo.userName !== "" && proxyinfo.userName !== null && proxyinfo.userName !== undefined ? proxyinfo.userName : proxyinfo.tel }}
+
+ {{ i.userName }}
+
+
修改
+
+
+
+
+
+ {{ firminfo.storeName }}
+
+
+
+
+
+
+ {{ firminfo.jobName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index 565a2ff..597928f 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 734a78b..5b6481e 100644
--- a/src/views/main.vue
+++ b/src/views/main.vue
@@ -109,7 +109,7 @@
-->
-
+
商家后台
@@ -240,17 +240,19 @@
import Cookies from 'js-cookie'
import {
JobListApi,
+ JobListApiYicai
// getCityApi,
} from '../api/job'
import { logoutApi } from '../api/login'
-import { disposeJobListData } from '../utils/commonUtil'
+import { disposeJobListData,setReturnFee } from '../utils/commonUtil'
export default {
inject: ['reload'],
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,57 @@ 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.jobMainList.forEach((item,index) => {
+ item['servetype'] = setReturnFee(item.returnFee,item.returnFeeType);
+ })
+ 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