|
|
@@ -13,6 +13,10 @@ Page({
|
|
|
data: {
|
|
|
imgServerUrl: imgServerUrl,
|
|
|
salaryList: [{
|
|
|
+ "expectationSalary": null,
|
|
|
+ "hightNum": '请选择'
|
|
|
+ },
|
|
|
+ {
|
|
|
"expectationSalary": -1,
|
|
|
"hightNum": '不限'
|
|
|
},
|
|
|
@@ -58,8 +62,8 @@ Page({
|
|
|
],
|
|
|
expectationPosition: ["普工", "客服", "销售", "服务员", "物流仓储", "司机", "才艺技能", "文员助理", "快递配送", "促销导购", "展会演出", "家教培训", "模特", "贸易采购", "厨师", "编辑", "线上推广", "设计", "技工", "保洁", "其它"],
|
|
|
region: {
|
|
|
- code:[],
|
|
|
- value:[]
|
|
|
+ code: [],
|
|
|
+ value: []
|
|
|
}, //省市区
|
|
|
name: '',
|
|
|
expectationPositionIndex: 0,
|
|
|
@@ -80,15 +84,15 @@ Page({
|
|
|
|
|
|
if (hpUserResumeId) {
|
|
|
let userResume = wx.getStorageSync('userResume')
|
|
|
-
|
|
|
+
|
|
|
this.data.region.code = this.data.region.code.concat(userResume.expectationProvinceId);
|
|
|
this.data.region.code = this.data.region.code.concat(userResume.expectationCityId);
|
|
|
this.data.region.code = this.data.region.code.concat(userResume.expectationCountryId);
|
|
|
var expectationArray = userResume.expectationPosition;
|
|
|
var lengthSalary = this.data.salaryList.length;
|
|
|
var salaryIndex;
|
|
|
- for (var i = 0; i < lengthSalary;i++){
|
|
|
- if (userResume.expectationSalary == this.data.salaryList[i].hightNum){
|
|
|
+ for (var i = 0; i < lengthSalary; i++) {
|
|
|
+ if (userResume.expectationSalary == this.data.salaryList[i].hightNum) {
|
|
|
salaryIndex = i;
|
|
|
}
|
|
|
}
|
|
|
@@ -107,6 +111,7 @@ Page({
|
|
|
|
|
|
//改变薪资水平
|
|
|
bindSalaryChange(e) {
|
|
|
+ console.log('picker改变薪资水平,携带值为', e.detail)
|
|
|
this.setData({
|
|
|
salaryIndex: e.detail.value
|
|
|
})
|
|
|
@@ -161,8 +166,14 @@ Page({
|
|
|
//验证
|
|
|
check() {
|
|
|
let {
|
|
|
- region
|
|
|
+ region,
|
|
|
+ salaryList,
|
|
|
+ salaryIndex
|
|
|
} = this.data
|
|
|
+ if (salaryList[salaryIndex].expectationSalary == null) {
|
|
|
+ showToast('请选择期望薪资');
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (region.value.length == 0) {
|
|
|
showToast('请选择期望地点');
|
|
|
return false
|