Commit ae002bcf authored by 李明环(东信)'s avatar 李明环(东信)

新需求修改

parent e138643d
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<view class="content"> <view class="content">
<view class="form-item"> <view class="form-item">
<view class="form-item-title">工作地点</view> <view class="form-item-title">工作地点</view>
<view :class="`inner flex-between ${address ? '' : 'placeholder'}`"> <view :class="`inner flex-between ${cityText ? '' : 'placeholder'}`">
<wd-col-picker <wd-col-picker
v-model="cityValue" v-model="cityValue"
:columns="cityOpstion" :columns="cityOpstion"
...@@ -57,15 +57,16 @@ const cityOpstion = ref([]); ...@@ -57,15 +57,16 @@ const cityOpstion = ref([]);
const cityValue = ref([]); const cityValue = ref([]);
const cityText = ref(""); const cityText = ref("");
let citySelectedItems = [];
getAreaListApi({ type: "province", code: "" }).then(res => { getAreaListApi({ type: "province", code: "" }).then(res => {
res.data.unshift({ name: "不限", code: null });
cityOpstion.value.push(res.data); cityOpstion.value.push(res.data);
}); });
const columnChangeCity = ({ selectedItem, resolve, index, finish }) => { const columnChangeCity = ({ selectedItem, resolve, index, finish }) => {
const type = keys[index]; const type = keys[index];
if (type) { if (type && selectedItem.code) {
getAreaListApi({ type, code: selectedItem.code }).then(res => { getAreaListApi({ type, code: selectedItem.code }).then(res => {
res.data.unshift({ name: "不限", code: null });
resolve(res.data); resolve(res.data);
}); });
} else { } else {
...@@ -95,15 +96,24 @@ const columnChangeCity = ({ selectedItem, resolve, finish }) => { ...@@ -95,15 +96,24 @@ const columnChangeCity = ({ selectedItem, resolve, finish }) => {
} }
}; */ }; */
const handleConfirmCity = ({ selectedItems }) => { const handleConfirmCity = ({ selectedItems }) => {
cityText.value = selectedItems.map(v => v.name || "").join("-");
citySelectedItems = selectedItems;
const [province, city, district, street] = selectedItems; const [province, city, district, street] = selectedItems;
pinias.formData.address = selectedItems.map(v => v.name || "").join(""); cityText.value = selectedItems
.filter(v => v.code)
.map(v => v.name || "")
.join("-");
pinias.formData.address = selectedItems
.filter(v => v.code)
.map(v => v.name || "")
.join("");
if (!province.code) {
cityText.value = "不限";
pinias.formData.address = "不限";
}
// pinias.formData.provinceCode = 520000; // pinias.formData.provinceCode = 520000;
pinias.formData.provinceCode = province.code; pinias.formData.provinceCode = province.code;
pinias.formData.cityCode = city.code; pinias.formData.cityCode = city?.code;
pinias.formData.cityName = district.name; pinias.formData.cityName = district?.name;
pinias.formData.districtCode = district.code; pinias.formData.districtCode = district?.code;
pinias.formData.street = street ? street.name : ""; pinias.formData.street = street ? street.name : "";
}; };
// 数据回显 // 数据回显
......
...@@ -238,7 +238,8 @@ const initSalaryColumns = () => { ...@@ -238,7 +238,8 @@ const initSalaryColumns = () => {
}); });
} }
// columns.value.push(temp); // columns.value.push(temp);
ageColumns.value = [ ageColumns.value = [temp, temp];
/* ageColumns.value = [
[ [
{ {
value: "", value: "",
...@@ -254,7 +255,7 @@ const initSalaryColumns = () => { ...@@ -254,7 +255,7 @@ const initSalaryColumns = () => {
next: false next: false
} }
] ]
]; ]; */
}; };
initSalaryColumns(); initSalaryColumns();
/* 专业 */ /* 专业 */
...@@ -271,7 +272,7 @@ const handleConfirmMajor = ({ value }) => { ...@@ -271,7 +272,7 @@ const handleConfirmMajor = ({ value }) => {
console.log(value); console.log(value);
if (value[1]) { if (value[1]) {
majorText.value = value[1]; majorText.value = value[1];
pinias.formData.majorRequirement = value.join('-'); pinias.formData.majorRequirement = value.join("-");
} else { } else {
majorText.value = "不限"; majorText.value = "不限";
} }
...@@ -320,15 +321,15 @@ const initViewData = async () => { ...@@ -320,15 +321,15 @@ const initViewData = async () => {
// 证书 // 证书
/* positionalTitle majorInputValue.value + "-" + majorSelectValue.value /* positionalTitle majorInputValue.value + "-" + majorSelectValue.value
professionalCertificates certificateInputValue.value + "-" + certificateSelectValue.value */ professionalCertificates certificateInputValue.value + "-" + certificateSelectValue.value */
const [majorInputValue1, majorSelectValue1] = pinias.formData.positionalTitle?.split("-")||[]; const [majorInputValue1, majorSelectValue1] = pinias.formData.positionalTitle?.split("-") || [];
const [certificateInputValue1, certificateSelectValue1] = pinias.formData.professionalCertificates?.split("-")||[]; const [certificateInputValue1, certificateSelectValue1] = pinias.formData.professionalCertificates?.split("-") || [];
majorInputValue.value = majorInputValue1; majorInputValue.value = majorInputValue1;
majorSelectValue.value = majorSelectValue1; majorSelectValue.value = majorSelectValue1;
certificateInputValue.value = certificateInputValue1; certificateInputValue.value = certificateInputValue1;
certificateSelectValue.value = certificateSelectValue1; certificateSelectValue.value = certificateSelectValue1;
console.log(pinias.formData.majorRequirement); console.log(pinias.formData.majorRequirement);
majorText.value = pinias.formData.majorRequirement.split('-')[1]||'' majorText.value = pinias.formData.majorRequirement.split("-")[1] || "";
} }
}; };
initViewData(); initViewData();
......
...@@ -126,19 +126,20 @@ const navList = reactive([ ...@@ -126,19 +126,20 @@ const navList = reactive([
auditStatus: "" auditStatus: ""
}, },
{ {
icon: new URL("@/static/image/user/post.png", import.meta.url).href, icon: new URL("@/static/image/user/position.png", import.meta.url).href,
url: "/pages/user/positionManagement/index", url: "/pages/recommend/releasePostion/step1",
text: "职位管理", text: "岗位发布",
subText: "", subText: "",
auditStatus: "" auditStatus: ""
}, },
{ {
icon: new URL("@/static/image/user/position.png", import.meta.url).href, icon: new URL("@/static/image/user/post.png", import.meta.url).href,
url: "/pages/recommend/releasePostion/step1", url: "/pages/user/positionManagement/index",
text: "岗位发布", text: "职位管理",
subText: "", subText: "",
auditStatus: "" auditStatus: ""
}, },
{ {
icon: new URL("@/static/image/user/question.png", import.meta.url).href, icon: new URL("@/static/image/user/question.png", import.meta.url).href,
url: "/pages/user/problemRecord/index", url: "/pages/user/problemRecord/index",
...@@ -279,11 +280,11 @@ onShow(() => { ...@@ -279,11 +280,11 @@ onShow(() => {
height: 30rpx; height: 30rpx;
} }
.u { .u {
width: 274rpx;
height: 192rpx;
position: absolute; position: absolute;
top: 20rpx; top: 20rpx;
right: 20rpx; right: 20rpx;
width: 274rpx;
height: 192rpx;
} }
.title { .title {
padding: 32rpx 0; padding: 32rpx 0;
...@@ -342,17 +343,16 @@ onShow(() => { ...@@ -342,17 +343,16 @@ onShow(() => {
padding: 0 32rpx 32rpx; padding: 0 32rpx 32rpx;
background-color: #ffffff; background-color: #ffffff;
border-radius: 10rpx; border-radius: 10rpx;
.a { .a {
position: absolute; position: absolute;
width: 448rpx; width: 448rpx;
height: 448rpx; height: 448rpx;
} }
.u { .u {
width: 274rpx;
height: 192rpx;
position: absolute; position: absolute;
top: 120rpx; top: 120rpx;
width: 274rpx;
height: 192rpx;
} }
.title { .title {
padding: 32rpx 0; padding: 32rpx 0;
...@@ -391,8 +391,8 @@ onShow(() => { ...@@ -391,8 +391,8 @@ onShow(() => {
.btn-box1 { .btn-box1 {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 40rpx;
justify-content: center; justify-content: center;
margin-top: 40rpx;
.btn { .btn {
box-sizing: border-box; box-sizing: border-box;
padding: 14rpx 34rpx; padding: 14rpx 34rpx;
......
...@@ -336,10 +336,12 @@ const onRefresherrefresh = e => { ...@@ -336,10 +336,12 @@ const onRefresherrefresh = e => {
background: #1f86ff10; background: #1f86ff10;
border-radius: 8rpx; border-radius: 8rpx;
.t1 { .t1 {
margin-bottom: 10rpx;
font-size: 48rpx; font-size: 48rpx;
font-weight: bold; font-weight: bold;
line-height: 36rpx; line-height: 36rpx;
color: #1f86ff; color: #1f86ff;
text-decoration: underline;
} }
.t2 { .t2 {
font-size: 24rpx; font-size: 24rpx;
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<template v-else> <template v-else>
<div class="f-btn-box"> <div class="f-btn-box">
<button class="b3" :class="`style${status}`">{{ btnText }}</button> <button class="b3" :class="`style${status}`">{{ btnText }}</button>
<div class="b4"> <div class="b4" v-if="!(applicationData.status == 4 || !applicationIdTemp)">
<div @click="callPhone"> <div @click="callPhone">
<img src="@/static/image/icon/telephone.png" alt="" /> <img src="@/static/image/icon/telephone.png" alt="" />
<p>立即联系</p> <p>立即联系</p>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<template v-else> <template v-else>
<div class="f-btn-box"> <div class="f-btn-box">
<button class="b3" :class="`style${applicationData.status}`">{{ applicationText }}</button> <button class="b3" :class="`style${applicationData.status}`">{{ applicationText }}</button>
<div class="b4"> <div class="b4" v-if="!(applicationData.status == 4 || !applicationIdTemp)">
<div @click="callPhone" :href="`tel:${applicationData.userPhone}`"> <div @click="callPhone" :href="`tel:${applicationData.userPhone}`">
<img src="@/static/image/icon/telephone.png" alt="" /> <img src="@/static/image/icon/telephone.png" alt="" />
<p>立即联系</p> <p>立即联系</p>
...@@ -182,6 +182,7 @@ import _ from "lodash"; ...@@ -182,6 +182,7 @@ import _ from "lodash";
_.Number; _.Number;
// 投递id // 投递id
let id = null; let id = null;
const applicationIdTemp = ref(null);
//工作id //工作id
let jobIdTemp = ref(null); let jobIdTemp = ref(null);
//用户id //用户id
...@@ -327,7 +328,7 @@ const pageType = ref(null); ...@@ -327,7 +328,7 @@ const pageType = ref(null);
onLoad(({ userId, jobId, applicationId, type }) => { onLoad(({ userId, jobId, applicationId, type }) => {
pageType.value = type; pageType.value = type;
id = applicationId; id = applicationId;
applicationIdTemp.value = applicationId;
jobIdTemp.value = jobId == "null" ? null : jobId; jobIdTemp.value = jobId == "null" ? null : jobId;
userIdTemp = userId; userIdTemp = userId;
getUserResume({ userId, jobId, applicationId }); getUserResume({ userId, jobId, applicationId });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment