|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="switch-roles">
|
|
<view class="switch-roles">
|
|
|
- <nav-bar title="选择职位要求" color="#000" :isBack="isBack"></nav-bar>
|
|
|
|
|
|
|
+ <nav-bar title="选择职位要求" color="#000"></nav-bar>
|
|
|
<view class="roles-content">
|
|
<view class="roles-content">
|
|
|
<view class="content">
|
|
<view class="content">
|
|
|
<view class="title">继续填写</view>
|
|
<view class="title">继续填写</view>
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
showExper: false,
|
|
showExper: false,
|
|
|
showLevel: false,
|
|
showLevel: false,
|
|
|
showMoney: false,
|
|
showMoney: false,
|
|
|
- isBack: false,
|
|
|
|
|
|
|
+ // isBack: false,
|
|
|
|
|
|
|
|
// 经验选择数据源
|
|
// 经验选择数据源
|
|
|
listExper: [{
|
|
listExper: [{
|
|
@@ -158,6 +158,7 @@ export default {
|
|
|
{ value: "4k", label: "4k" },
|
|
{ value: "4k", label: "4k" },
|
|
|
{ value: "5k", label: "5k" },
|
|
{ value: "5k", label: "5k" },
|
|
|
{ value: "6k", label: "6k" },
|
|
{ value: "6k", label: "6k" },
|
|
|
|
|
+ { value: "7k", label: "7k" },
|
|
|
{ value: "8k", label: "8k" },
|
|
{ value: "8k", label: "8k" },
|
|
|
{ value: "10k", label: "10k" },
|
|
{ value: "10k", label: "10k" },
|
|
|
{ value: "12k", label: "12k" },
|
|
{ value: "12k", label: "12k" },
|
|
@@ -186,6 +187,7 @@ export default {
|
|
|
{ value: "4k", label: "4k" },
|
|
{ value: "4k", label: "4k" },
|
|
|
{ value: "5k", label: "5k" },
|
|
{ value: "5k", label: "5k" },
|
|
|
{ value: "6k", label: "6k" },
|
|
{ value: "6k", label: "6k" },
|
|
|
|
|
+ { value: "7k", label: "7k" },
|
|
|
{ value: "8k", label: "8k" },
|
|
{ value: "8k", label: "8k" },
|
|
|
{ value: "10k", label: "10k" },
|
|
{ value: "10k", label: "10k" },
|
|
|
{ value: "12k", label: "12k" },
|
|
{ value: "12k", label: "12k" },
|
|
@@ -234,18 +236,24 @@ export default {
|
|
|
],
|
|
],
|
|
|
type: '',
|
|
type: '',
|
|
|
ruleClassifyId:'',//岗位id
|
|
ruleClassifyId:'',//岗位id
|
|
|
|
|
+ dataInfo:{}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
navBar,
|
|
navBar,
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
|
+ let stationNameInfo = this.$queue.getJson('companyAddressInfo') || [];
|
|
|
|
|
+ console.log(options)
|
|
|
|
|
+ if(options.dataInfo){
|
|
|
|
|
+ this.dataInfo = JSON.parse(options.dataInfo)
|
|
|
|
|
+ }
|
|
|
if(options.ruleClassifyId){
|
|
if(options.ruleClassifyId){
|
|
|
this.ruleClassifyId = options.ruleClassifyId;
|
|
this.ruleClassifyId = options.ruleClassifyId;
|
|
|
}
|
|
}
|
|
|
- if (options.isBack == 'true') {
|
|
|
|
|
- this.isBack = true;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (options.isBack == 'true') {
|
|
|
|
|
+ // this.isBack = true;
|
|
|
|
|
+ // }
|
|
|
// 接收上个页面传递的公司名称参数
|
|
// 接收上个页面传递的公司名称参数
|
|
|
if (options.companyName) {
|
|
if (options.companyName) {
|
|
|
this.companyName = decodeURIComponent(options.companyName);
|
|
this.companyName = decodeURIComponent(options.companyName);
|
|
@@ -260,7 +268,6 @@ export default {
|
|
|
this.getcompanystatus()
|
|
this.getcompanystatus()
|
|
|
}
|
|
}
|
|
|
if (options.workData) {
|
|
if (options.workData) {
|
|
|
- console.log(JSON.parse(options.workData), '测试11111')
|
|
|
|
|
let workData = JSON.parse(options.workData)
|
|
let workData = JSON.parse(options.workData)
|
|
|
this.selectedExper = workData.experience;
|
|
this.selectedExper = workData.experience;
|
|
|
this.selectedLevel = workData.education;
|
|
this.selectedLevel = workData.education;
|
|
@@ -268,14 +275,16 @@ export default {
|
|
|
this.salaryTimes = workData.salaryTimes || '';
|
|
this.salaryTimes = workData.salaryTimes || '';
|
|
|
this.welfareTag = workData.welfareTag || '';
|
|
this.welfareTag = workData.welfareTag || '';
|
|
|
this.positionTag = workData.positionTag ? workData.positionTag.split (',') : [];
|
|
this.positionTag = workData.positionTag ? workData.positionTag.split (',') : [];
|
|
|
- this.address = workData.address;
|
|
|
|
|
- this.stationName.fullText = workData.address, //地址
|
|
|
|
|
- this.stationName.latitude = workData.lat
|
|
|
|
|
- this.stationName.longitude = workData.lng;
|
|
|
|
|
- this.stationName.province = workData.province;
|
|
|
|
|
- this.stationName.city = workData.city;
|
|
|
|
|
- this.stationName.district = workData.county;
|
|
|
|
|
- this.jobTitle = workData.ruleClassifyName;
|
|
|
|
|
|
|
+ this.address = workData.address || this.$queue.getData('companyAddress');
|
|
|
|
|
+ this.stationName.fullText = workData.address || this.$queue.getData('companyAddress'), //地址
|
|
|
|
|
+ this.stationName.latitude = workData.lat || stationNameInfo.latitude
|
|
|
|
|
+ this.stationName.longitude = workData.lng || stationNameInfo.longitude
|
|
|
|
|
+ this.stationName.province = workData.province || stationNameInfo.province
|
|
|
|
|
+ this.stationName.city = workData.city || stationNameInfo.city
|
|
|
|
|
+ this.stationName.district = workData.county || stationNameInfo.district
|
|
|
|
|
+ this.jobTitle = workData.ruleClassifyName
|
|
|
|
|
+ console.log(11111,this.$queue.getData('companyAddress'))
|
|
|
|
|
+ console.log(this.address)
|
|
|
}
|
|
}
|
|
|
this.fundListener = uni.$on("fundData", (data) => {
|
|
this.fundListener = uni.$on("fundData", (data) => {
|
|
|
console.log("接收到的福利数据:", data);
|
|
console.log("接收到的福利数据:", data);
|
|
@@ -289,8 +298,9 @@ export default {
|
|
|
this.address = data.fullText;
|
|
this.address = data.fullText;
|
|
|
this.stationName = data;
|
|
this.stationName = data;
|
|
|
this.stationName.fullText = data.fullText;
|
|
this.stationName.fullText = data.fullText;
|
|
|
-
|
|
|
|
|
- this.stationName = data; // 赋值给当前页面变量
|
|
|
|
|
|
|
+ this.$queue.setData('companyAddress', data.fullText);
|
|
|
|
|
+ this.$queue.setJson('companyAddressInfo', data);
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
if (options.companyId) {
|
|
if (options.companyId) {
|
|
|
this.companyId = options.companyId;
|
|
this.companyId = options.companyId;
|
|
@@ -309,13 +319,12 @@ export default {
|
|
|
if (options.type && options.type == 'updata') {
|
|
if (options.type && options.type == 'updata') {
|
|
|
this.getInfo()
|
|
this.getInfo()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
console.log('接收PID:', this.pid);
|
|
console.log('接收PID:', this.pid);
|
|
|
} else {
|
|
} else {
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/pages/my/jobPosting?companyId=' + this.companyId + '&status=' + this.status +
|
|
|
|
|
- '&companyName=' + this.companyName
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: '/pages/my/jobPosting?companyId=' + this.companyId + '&status=' + this.status +
|
|
|
|
|
+ // '&companyName=' + this.companyName
|
|
|
|
|
+ // })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -518,6 +527,11 @@ export default {
|
|
|
const str = positionTag.join(',');
|
|
const str = positionTag.join(',');
|
|
|
// 构造提交数据
|
|
// 构造提交数据
|
|
|
const data = {
|
|
const data = {
|
|
|
|
|
+ type: this.dataInfo.type,
|
|
|
|
|
+ isDue: this.dataInfo.isDue,
|
|
|
|
|
+ positionDetails: this.dataInfo.positionDetails,
|
|
|
|
|
+ ruleClassifyId:this.dataInfo.ruleClassifyId,
|
|
|
|
|
+ ruleClassifyName: this.dataInfo.ruleClassifyName,
|
|
|
orderid: 1,
|
|
orderid: 1,
|
|
|
postPushId: this.pid,
|
|
postPushId: this.pid,
|
|
|
experience: this.selectedExper, //工作经验
|
|
experience: this.selectedExper, //工作经验
|
|
@@ -533,9 +547,7 @@ export default {
|
|
|
county: this.stationName.district,
|
|
county: this.stationName.district,
|
|
|
// companyId: (this.companyId === undefined || this.companyId === 'undefined') ? '' : this.companyId,
|
|
// companyId: (this.companyId === undefined || this.companyId === 'undefined') ? '' : this.companyId,
|
|
|
salaryTimes: this.salaryTimes
|
|
salaryTimes: this.salaryTimes
|
|
|
-
|
|
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
// 调用接口提交
|
|
// 调用接口提交
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: "提交中..."
|
|
title: "提交中..."
|
|
@@ -620,7 +632,7 @@ export default {
|
|
|
|
|
|
|
|
.desc {
|
|
.desc {
|
|
|
color: #666;
|
|
color: #666;
|
|
|
- font-size: 24rpx;
|
|
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -650,7 +662,7 @@ export default {
|
|
|
|
|
|
|
|
.txt-desc {
|
|
.txt-desc {
|
|
|
color: #666;
|
|
color: #666;
|
|
|
- font-size: 24rpx;
|
|
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
|
}
|
|
}
|