flat: 修改全职岗位和零工岗位问题
This commit is contained in:
@@ -31,8 +31,10 @@
|
||||
<view class="list_text">
|
||||
{{ item.worktypes }}、{{ item.skills }}
|
||||
</view>
|
||||
<view>
|
||||
<image src="../../../static/img/left_right.png" mode=""></image>
|
||||
<view class="delt" @click="removeSkills(item.id, index)">
|
||||
删除
|
||||
<!-- 向右滑动删除 -->
|
||||
<!-- <image src="../../../static/img/left_right.png" mode=""></image> -->
|
||||
</view>
|
||||
</view>
|
||||
</m-slide-list>
|
||||
@@ -74,17 +76,21 @@
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="jobcontent" @click="showPickerFunc('wage')">
|
||||
</view>
|
||||
<!-- @click="showPickerFunc('wage')" -->
|
||||
<view class="jobcontent" >
|
||||
<view class="jobinfo">
|
||||
<view v-bind:class="['jobAddress', { 'input-error': !myResume.wage && isShowBorder }]">
|
||||
我的期望薪资
|
||||
</view>
|
||||
<view v-bind:class="['jobText']">
|
||||
{{ myResume.wage ? myResume.wage : '请选择' }}
|
||||
<view v-bind:class="['jobText', 'jobDis']">
|
||||
<!-- {{ myResume.wage ? myResume.wage : '请选择' }} -->
|
||||
|
||||
<u--input type="number" border="none" @focus="change1" @change="change($event, 'wage')" :value="myResume.wage" placeholder="请输入期望薪资范围" class="jobNumber" /><span>~</span>
|
||||
<u--input type="number" border="none" @focus="change1" @change="change($event, 'wageUpper')" :value="myResume.wageUpper" placeholder="请输入期望薪资范围" class="jobNumber" /><span>元/月</span>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../../static/img/right.svg" mode=""></image>
|
||||
<!-- <image src="../../../static/img/right.svg" mode=""></image> -->
|
||||
</view>
|
||||
<view class="jobcontent">
|
||||
<view class="jobinfo">
|
||||
@@ -165,7 +171,7 @@
|
||||
<!-- 省市 -->
|
||||
<data-picker :show="areaModal.addressShow" @confirm='confirmAddress' @cancel='areaModal.addressShow = false'
|
||||
@close='areaModal.addressShow = false' :defaultNames="areaModal.defaultNames" :indexs="areaModal.indexs"
|
||||
:defaultIds="areaModal.defaultIds" :showToolbar="false" :showBottombar="true"
|
||||
:defaultIds="areaModal.defaultIds" :showToolbar="false" :showBottombar="true" :sourceData=areaData
|
||||
:labelName="areaModal.labelName"></data-picker>
|
||||
</view>
|
||||
</template>
|
||||
@@ -191,7 +197,9 @@
|
||||
import {
|
||||
cloneDeep,
|
||||
forIn
|
||||
} from 'lodash';
|
||||
} from 'lodash';
|
||||
import area from "./province-city-county.json"
|
||||
|
||||
const validateForm = {
|
||||
name: '请输入企业名称',
|
||||
work: '请输入工作岗位',
|
||||
@@ -217,7 +225,8 @@
|
||||
city: {},
|
||||
education: {},
|
||||
wage: "",
|
||||
phone: "",
|
||||
phone: "",
|
||||
wageUpper: ''
|
||||
},
|
||||
mySkills: [],
|
||||
id: undefined,
|
||||
@@ -241,12 +250,14 @@
|
||||
address: '',
|
||||
addressShow: false,
|
||||
title: 'Hello',
|
||||
// indexs: [0, 0, 8],
|
||||
indexs: [0,0],
|
||||
// defaultIds: [1, 110000, 110106],
|
||||
defaultNames: ['北京市', '北京市', '东城区'],
|
||||
// defaultNames: ['北京市', '北京市', '东城区'],
|
||||
// defaultNames: ['德阳市', '旌阳区'],
|
||||
labelName: "areaName"
|
||||
|
||||
},
|
||||
},
|
||||
areaData: []
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
@@ -254,7 +265,11 @@
|
||||
GoLogin()
|
||||
return
|
||||
}
|
||||
this.getSkill()
|
||||
this.getSkill()
|
||||
// this.areaData = area.find(i => i.id === 510000).children
|
||||
const areaObj = area.find(i => i.id === 510000).children
|
||||
const areaObj1 = areaObj.find(i => i.id === 510600)
|
||||
this.areaData = [areaObj1]
|
||||
},
|
||||
created() {
|
||||
this.getResume()
|
||||
@@ -265,7 +280,7 @@
|
||||
watch: {
|
||||
myResume: {
|
||||
handler: function(newVal, oldVal) {
|
||||
if (newVal.city && newVal.education && newVal.wage && newVal.phone) {
|
||||
if (newVal.city && newVal.education && newVal.wage && newVal.phone && newVal.wageUpper) {
|
||||
this.canSubMit = true;
|
||||
} else {
|
||||
this.canSubMit = false;
|
||||
@@ -346,7 +361,8 @@
|
||||
education: {
|
||||
label: data.education
|
||||
},
|
||||
wage: data.wage,
|
||||
wage: data.wage,
|
||||
wageUpper: data.wageUpper,
|
||||
phone: data.telephone
|
||||
}
|
||||
this.isShowButton = false;
|
||||
@@ -484,7 +500,15 @@
|
||||
}
|
||||
this.isShowButton = true;
|
||||
this.showPicker = true;
|
||||
},
|
||||
},
|
||||
change(e, type) {
|
||||
console.log(type, e, '----')
|
||||
this.myResume[type] = e
|
||||
|
||||
},
|
||||
change1(){
|
||||
this.isShowButton = true;
|
||||
},
|
||||
pickerButtonFunc(e) {
|
||||
console.log(e, this.myResume, this.myResume[this.showType]);
|
||||
this.myResume[this.showType] = e.value[0];
|
||||
@@ -514,7 +538,8 @@
|
||||
city,
|
||||
education,
|
||||
phone,
|
||||
wage
|
||||
wage,
|
||||
wageUpper,
|
||||
} = this.myResume
|
||||
// 中国大陆手机号码正则表达式
|
||||
const mobileRegex = /\b(1[3-9]\d{9})\b/;
|
||||
@@ -522,7 +547,7 @@
|
||||
const landlineRegex = /\b(0\d{2,3}-\d{7,8}(-\d{1,4})?)\b/;
|
||||
|
||||
const workList = JSON.stringify(this.gzList)
|
||||
|
||||
if (!wage || !wageUpper) return this.showToast("请正确填写薪资范围");
|
||||
if (mobileRegex.test(phone) || landlineRegex.test(phone)) {
|
||||
// 电话号码格式正确
|
||||
console.log(phone, "电话号码格式正确");
|
||||
@@ -531,7 +556,8 @@
|
||||
education: education.label,
|
||||
workplace: city.workplace ? city.workplace : city.parentLabel + '-' + city.label,
|
||||
telephone: phone,
|
||||
wage,
|
||||
wage,
|
||||
wageUpper,
|
||||
workExperience: workList
|
||||
}).then(res => {
|
||||
this.isShowButton = false;
|
||||
@@ -816,5 +842,49 @@
|
||||
|
||||
.input-error {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
.delt {
|
||||
color: red;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.jobDis {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
height: 60rpx;
|
||||
border: 1rpx solid #999999;
|
||||
border-radius: 40rpx;
|
||||
|
||||
span:nth-of-type(1) {
|
||||
padding: 0 20rpx;
|
||||
border: 1rpx solid #999999;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
span:nth-of-type(2) {
|
||||
padding: 0 10rpx;
|
||||
width: 80rpx;
|
||||
font-size: 20rpx;
|
||||
border-left: 1rpx solid #999999;
|
||||
}
|
||||
}
|
||||
.jobNumber {
|
||||
height: 60rpx;
|
||||
padding-left: 16rpx;
|
||||
/* border: 1rpx solid #999999; */
|
||||
/* border-top: none;
|
||||
border-bottom: none; */
|
||||
}
|
||||
|
||||
.uni-input-placeholder {
|
||||
padding-left: 16rpx !important;
|
||||
}
|
||||
.uni-input-input, .uni-input-placeholder {
|
||||
padding-left: 16rpx !important;
|
||||
}
|
||||
.u-input__content__field-wrapper__field {
|
||||
padding-left: 16rpx !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user