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

新需求修改

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