简历地区选择修改

This commit is contained in:
dengxin
2024-02-19 19:34:06 +08:00
parent ac11c60633
commit 7557a329ef
3 changed files with 54 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ export default [
], ],
}, },
{ {
name: "省市区县", name: "区域",
data: [ data: [
{ {
name: "薪资不限", name: "薪资不限",

View File

@@ -16,7 +16,7 @@
<text>{{ item.name }}</text> <text>{{ item.name }}</text>
</view> </view>
<view class="item-container"> <view class="item-container">
<view @click="clickFunc({ 'type': 'address' })" v-if="item.name === `省市区县`" <view @click="clickFunc({ 'type': 'address' })" v-if="item.name === `区域`"
class="thumb-box thumb-box1"> class="thumb-box thumb-box1">
<u-cell-group> <u-cell-group>
<u-cell icon="map" :title="areaModal.address" :isLink="true" <u-cell icon="map" :title="areaModal.address" :isLink="true"
@@ -388,10 +388,11 @@ export default {
.page-view { .page-view {
padding: 8rpx; padding: 8rpx;
padding-left: 4rpx;
} }
.class-item { .class-item {
margin-bottom: 30rpx; margin-bottom: 10rpx;
background-color: #fff; background-color: #fff;
padding: 16rpx; padding: 16rpx;
border-radius: 8rpx; border-radius: 8rpx;

View File

@@ -19,7 +19,7 @@
<view class="title_text"> <view class="title_text">
我的职业技能 我的职业技能
</view> </view>
<image v-if="mySkills.length < 5" src="../../../static/img/add.gray.svg" mode="" @click="goAdd"></image> <image v-if="mySkills.length < 2" src="../../../static/img/add.gray.svg" mode="" @click="goAdd"></image>
</view> </view>
<view class="listBody"> <view class="listBody">
@@ -34,14 +34,28 @@
</view> </view>
</m-slide-list> </m-slide-list>
</view> </view>
<view class="jobcontent" @click="goSetCity"> <!-- <view class="jobcontent" @click="goSetCity">
<view class="jobinfo"> <view class="jobinfo">
<view <view
v-bind:class="['jobAddress', { 'input-error': (!myResume.city.id || !myResume.city.workplace) && isShowBorder }]"> v-bind:class="['jobAddress', { 'input-error': !myResume.city.id && !myResume.city.workplace && isShowBorder }]">
您想工作的地点 您想工作的地点
</view> </view>
<view v-bind:class="['jobText']"> <view v-bind:class="['jobText']">
{{ myResume.city == {} ? myResume.city.id ? getCity(myResume.city.id) : myResume.city.workplace : '请选择' {{ myResume.city !== "{}" ? myResume.city.id ? getCity(myResume.city.id) : myResume.city.workplace : '请选择'
}}
</view>
</view>
<image src="../../../static/img/right.svg" mode=""></image>
</view> -->
<view class="jobcontent" @click="areaModal.addressShow = true">
<view class="jobinfo">
<view
v-bind:class="['jobAddress', { 'input-error': !myResume.city.id && !myResume.city.workplace && isShowBorder }]">
您想工作的地点
</view>
<view v-bind:class="['jobText']">
{{ myResume.city !== "{}" ? myResume.city.id ? getCity(myResume.city.id) : myResume.city.workplace :
'请选择'
}} }}
</view> </view>
</view> </view>
@@ -53,7 +67,7 @@
您的学历 您的学历
</view> </view>
<view v-bind:class="['jobText']"> <view v-bind:class="['jobText']">
{{ myResume.education == {} ? myResume.education.label : '请选择' }} {{ myResume.education !== "{}" ? myResume.education.label : '请选择' }}
</view> </view>
</view> </view>
<image src="../../../static/img/right.svg" mode=""></image> <image src="../../../static/img/right.svg" mode=""></image>
@@ -89,6 +103,12 @@
keyName="label"></u-picker> keyName="label"></u-picker>
<u-toast ref="uToast"></u-toast> <u-toast ref="uToast"></u-toast>
<!-- 省市 -->
<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"
:labelName="areaModal.labelName"></data-picker>
</view> </view>
</template> </template>
@@ -135,7 +155,18 @@ export default {
canSubMit: false, canSubMit: false,
isShowButton: false, isShowButton: false,
isShowBorder: false, isShowBorder: false,
isShowAddSkill: true isShowAddSkill: true,
areaModal: {
address: '',
addressShow: false,
title: 'Hello',
// indexs: [0, 0, 8],
// defaultIds: [1, 110000, 110106],
defaultNames: ['北京市', '北京市', '东城区'],
labelName: "areaName"
},
} }
}, },
onShow() { onShow() {
@@ -217,6 +248,7 @@ export default {
}) })
}, },
goAdd: function () { goAdd: function () {
uni.navigateTo({ uni.navigateTo({
url: './addSkill' url: './addSkill'
}) })
@@ -306,7 +338,7 @@ export default {
// 电话号码格式正确 // 电话号码格式正确
console.log(phone, "电话号码格式正确"); console.log(phone, "电话号码格式正确");
setResume({ setResume({
id: this.id, education: education.label, workplace: city.parentLabel + '-' + city.label, telephone: phone, wage id: this.id, education: education.label, workplace: city.workplace ? city.workplace : city.parentLabel + '-' + city.label, telephone: phone, wage
}).then(res => { }).then(res => {
this.isShowButton = false; this.isShowButton = false;
this.getResume() this.getResume()
@@ -321,7 +353,17 @@ export default {
} },
confirmAddress(val) {
console.log(val);
var valArr = val.value;
// this.areaModal.address = [...new Set(val.value)].join(' / ')
this.isShowButton = true
this.myResume.city.workplace = [...new Set(val.value)].join('/')
console.log(this.areaModal.address);
this.areaModal.addressShow = false
},
} }
} }
</script> </script>