2024-02-02 14:44:30 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view style="background-color: #fff;">
|
|
|
|
|
|
<view class="head" @click="goUserBase">
|
|
|
|
|
|
<image v-if="userInfo.avatar" :src="userInfo.avatar" mode=""></image>
|
|
|
|
|
|
<image v-else src="../../../static/img/head.svg" mode=""></image>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="name">
|
|
|
|
|
|
<view class="userName">
|
2024-02-17 09:42:41 +08:00
|
|
|
|
{{ auth.authInfo.realName }}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="userInfo">
|
|
|
|
|
|
个人基本信息
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="title">
|
|
|
|
|
|
<view class="title_text">
|
|
|
|
|
|
我的职业技能
|
|
|
|
|
|
</view>
|
2024-02-17 09:42:41 +08:00
|
|
|
|
<image v-if="mySkills.length < 10" src="../../../static/img/add.gray.svg" mode="" @click="goAdd"></image>
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="listBody">
|
2024-02-17 09:42:41 +08:00
|
|
|
|
<m-slide-list @controller-reg="controller.reg" @controller-moving="controller.moving"
|
|
|
|
|
|
@controller-opened="controller.opened" @controller-closed="controller.closed"
|
|
|
|
|
|
@remove="removeSkills(item.id, index)" v-for="(item, index) in mySkills" :key="item.id"
|
|
|
|
|
|
:button="buttonList">
|
2024-02-02 14:44:30 +08:00
|
|
|
|
<view class="list">
|
|
|
|
|
|
<view class="list_text">
|
2024-02-17 09:42:41 +08:00
|
|
|
|
{{ item.trade }}·{{ item.worktypes }}·{{ item.skills }}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</m-slide-list>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="jobcontent" @click="goSetCity">
|
|
|
|
|
|
<view class="jobinfo">
|
|
|
|
|
|
<view class="jobAddress">
|
|
|
|
|
|
您想工作的地点
|
|
|
|
|
|
</view>
|
2024-02-17 09:42:41 +08:00
|
|
|
|
<view v-bind:class="['jobText', { nochoose: !myResume.cityId }]">
|
|
|
|
|
|
{{ myResume.cityId ? getCity(myResume.cityId) : '请选择' }}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view>
|
2024-02-17 09:42:41 +08:00
|
|
|
|
<view class="jobcontent" @click="showPickerFunc('education')">
|
|
|
|
|
|
<view class="jobinfo">
|
|
|
|
|
|
<view class="jobAddress">
|
|
|
|
|
|
您的学历
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view v-bind:class="['jobText', { nochoose: !myResume.cityId }]">
|
|
|
|
|
|
{{ myResume.education ? this.myResume.education : '请选择' }}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="jobcontent" @click="showPickerFunc('wage')">
|
|
|
|
|
|
<view class="jobinfo">
|
|
|
|
|
|
<view class="jobAddress">
|
|
|
|
|
|
您的期望薪资
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view v-bind:class="['jobText', { nochoose: !myResume.cityId }]">
|
|
|
|
|
|
{{ myResume.wage ? this.myResume.wage : '请选择' }}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<!-- <view class="jobcontent" @click="goSetCity">
|
|
|
|
|
|
<view class="jobinfo">
|
|
|
|
|
|
<view class="jobAddress">
|
|
|
|
|
|
您的期望薪资
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view v-bind:class="['jobText', { nochoose: !myResume.cityId }]">
|
|
|
|
|
|
{{ myResume.cityId ? getCity(myResume.cityId) : '请选择' }}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="jobcontent" @click="goSetCity">
|
|
|
|
|
|
<view class="jobinfo">
|
|
|
|
|
|
<view class="jobAddress">
|
|
|
|
|
|
您的联系方式
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view v-bind:class="['jobText', { nochoose: !myResume.cityId }]">
|
|
|
|
|
|
{{ myResume.cityId ? getCity(myResume.cityId) : '请选择' }}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view> -->
|
2024-02-02 14:44:30 +08:00
|
|
|
|
<view class="border"></view>
|
|
|
|
|
|
<!--<view class="jobcontent" @click="goWantSkill">
|
|
|
|
|
|
<view class="jobinfo">
|
|
|
|
|
|
<view class="jobAddress">
|
|
|
|
|
|
我想学习的技能(选填)
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="jobText" v-bind:class="myResume.learnSkill?'':'nochoose'">
|
|
|
|
|
|
{{myResume.learnSkill?myResume.learnSkill:'请填写'}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../../static/img/right.svg" mode=""></image>
|
|
|
|
|
|
</view>-->
|
2024-02-17 09:42:41 +08:00
|
|
|
|
|
|
|
|
|
|
<u-picker @confirm="pickerButtonFunc" @cancel="showPicker = false" :show="showPicker" :columns="columns"></u-picker>
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-02-17 09:42:41 +08:00
|
|
|
|
import {
|
|
|
|
|
|
mapGetters
|
|
|
|
|
|
} from 'vuex'
|
|
|
|
|
|
import {
|
|
|
|
|
|
mySkills,
|
|
|
|
|
|
myResume,
|
|
|
|
|
|
removeSkills,
|
|
|
|
|
|
setCity,
|
|
|
|
|
|
setLearn
|
|
|
|
|
|
} from '@/api/resume.js';
|
|
|
|
|
|
import mSlideList from '@/components/mark-slide-list/mark-slide-list.vue';
|
|
|
|
|
|
import controller from '@/components/mark-slide-list/controller';
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
components: {
|
|
|
|
|
|
mSlideList
|
|
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
controller: new controller(),
|
|
|
|
|
|
myResume: {},
|
|
|
|
|
|
mySkills: [],
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
buttonList: [{
|
|
|
|
|
|
title: '删除',
|
|
|
|
|
|
background: '#ff3b32',
|
|
|
|
|
|
clickName: 'remove'
|
|
|
|
|
|
}],
|
|
|
|
|
|
showPicker: false,
|
|
|
|
|
|
showType: "",
|
|
|
|
|
|
columns: [
|
|
|
|
|
|
['MBA/EMBA', '博士', '硕士', '本科', '大专', '高中', '中专/中技'
|
|
|
|
|
|
, '初中及以下', '不限'
|
|
|
|
|
|
]
|
|
|
|
|
|
],
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
|
|
|
this.getResume()
|
|
|
|
|
|
this.getSkill()
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
...mapGetters(['userInfo', 'auth'])
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
getResume() {
|
|
|
|
|
|
myResume().then(res => {
|
|
|
|
|
|
const data = res.data.data
|
|
|
|
|
|
this.myResume = data
|
|
|
|
|
|
if (data && data.id) {
|
|
|
|
|
|
this.id = data.id
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2024-02-02 14:44:30 +08:00
|
|
|
|
},
|
2024-02-17 09:42:41 +08:00
|
|
|
|
getSkill() {
|
|
|
|
|
|
mySkills().then(res => {
|
|
|
|
|
|
this.mySkills = res.data.data;
|
|
|
|
|
|
})
|
2024-02-02 14:44:30 +08:00
|
|
|
|
},
|
2024-02-17 09:42:41 +08:00
|
|
|
|
goWantSkill: function () {
|
|
|
|
|
|
uni.$off('getWantSkill')
|
|
|
|
|
|
uni.$once('getWantSkill', (cb) => {
|
|
|
|
|
|
cb(this.myResume.learnSkill)
|
|
|
|
|
|
})
|
|
|
|
|
|
uni.$off('setWantSkill')
|
|
|
|
|
|
uni.$once('setWantSkill', ({
|
|
|
|
|
|
skill,
|
|
|
|
|
|
done
|
|
|
|
|
|
}) => {
|
|
|
|
|
|
setLearn(this.id, skill).then(res => {
|
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
done && done()
|
2024-02-02 14:44:30 +08:00
|
|
|
|
})
|
2024-02-17 09:42:41 +08:00
|
|
|
|
this.getResume()
|
|
|
|
|
|
})
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: './setWskill?id=' + this.id
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
goSetCity: function () {
|
|
|
|
|
|
uni.$off('setCity')
|
|
|
|
|
|
uni.$on('setCity', ({ detail }) => {
|
|
|
|
|
|
console.log(detail, '---------------');
|
|
|
|
|
|
|
|
|
|
|
|
setCity(this.id, detail.parentLabel + '-' + detail.label).then(res => {
|
|
|
|
|
|
this.myResume.cityId = detail.id
|
2024-02-02 14:44:30 +08:00
|
|
|
|
this.getResume()
|
|
|
|
|
|
})
|
2024-02-17 09:42:41 +08:00
|
|
|
|
})
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: `/pages/setCity/setCity?maxLayer=2`
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
goAdd: function () {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: './addSkill'
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
goUserBase: function () {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: '../userBase'
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
getCity: function (val) {
|
|
|
|
|
|
if (val) {
|
|
|
|
|
|
let areas = this.$store.getters.getAreaParents(val)
|
|
|
|
|
|
if (areas.length) {
|
|
|
|
|
|
return areas[0].label + '-' + areas[1].label
|
2024-02-02 14:44:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-02-17 09:42:41 +08:00
|
|
|
|
},
|
|
|
|
|
|
removeSkills: function (id, index) {
|
|
|
|
|
|
removeSkills(id).then(res => {
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
title: '操作成功',
|
|
|
|
|
|
icon: 'none'
|
|
|
|
|
|
});
|
|
|
|
|
|
this.mySkills.splice(index, 1)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
showPickerFunc(type) {
|
|
|
|
|
|
this.showType = type;
|
|
|
|
|
|
switch (type) {
|
|
|
|
|
|
case "education":
|
|
|
|
|
|
this.columns =
|
|
|
|
|
|
[['MBA/EMBA', '博士', '硕士', '本科', '大专', '高中', '中专/中技'
|
|
|
|
|
|
, '初中及以下', '不限'
|
|
|
|
|
|
]]
|
|
|
|
|
|
break;
|
|
|
|
|
|
case "wage":
|
|
|
|
|
|
this.columns =[['10-15元/小时', '16-20元/小时', '21-25元/小时', '26-30元/小时', '30元/小时以上', '100-150元/天', '151-200元/天'
|
|
|
|
|
|
, '201-250元/天', '251-300元/天',"300元/天以上","2000元(含)以下/月","2000-5000元(含)/月","5000-8000元(含)/月",
|
|
|
|
|
|
"8000-10000元(含)/月","10000-15000元(含)/月","15000-20000元(含)/月","20000-25000元(含)/月","25000-30000元(含)/月","30000元以上/月","面议、暂无要求"
|
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
this.showPicker = true;
|
|
|
|
|
|
},
|
|
|
|
|
|
pickerButtonFunc(e) {
|
|
|
|
|
|
console.log(e, this.myResume, this.myResume[this.showType]);
|
|
|
|
|
|
this.myResume[this.showType] = e.value[0];
|
|
|
|
|
|
this.showPicker = false;
|
2024-02-02 14:44:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-02-17 09:42:41 +08:00
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.border {
|
|
|
|
|
|
margin-left: 30rpx;
|
|
|
|
|
|
width: 720rpx;
|
|
|
|
|
|
border: 1rpx solid #f2f2f2;
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
/* height: 1rpx;
|
2024-02-02 14:44:30 +08:00
|
|
|
|
background-color: #ddd; */
|
2024-02-17 09:42:41 +08:00
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.jobText {
|
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.jobAddress {
|
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
color: #999999;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.nochoose {
|
|
|
|
|
|
color: #ccc;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.jobcontent {
|
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
line-height: 63rpx;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.jobcontent image {
|
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.listBody {}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.list_text {
|
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.list image {
|
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.list {
|
|
|
|
|
|
padding: 0 15px 0 30rpx;
|
|
|
|
|
|
height: 126rpx;
|
|
|
|
|
|
line-height: 126rpx;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-bottom: 1px solid #f2f2f2;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.title image {
|
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.title {
|
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
color: #999999;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
padding: 25rpx 30rpx;
|
|
|
|
|
|
/* padding-top: 30rpx; */
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
border: 1rpx solid #f2f2f2;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.userInfo {
|
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
color: #999999;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.name {
|
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
|
font-family: PingFangSC-Medium;
|
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
line-height: 50rpx;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.head image:last-child {
|
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.head image {
|
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
page {
|
|
|
|
|
|
background-color: #f6f6f6;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
|
2024-02-17 09:42:41 +08:00
|
|
|
|
.head {
|
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
|
width: 690rpx;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
}
|
2024-02-02 14:44:30 +08:00
|
|
|
|
</style>
|