|
@@ -2,7 +2,7 @@
|
|
|
<view>
|
|
|
<view class="jpLogin">
|
|
|
<u-navbar :background="background" :border-bottom="false"></u-navbar>
|
|
|
-
|
|
|
+ <u-toast ref="uToast"></u-toast>
|
|
|
<view class="jpLogin-title">
|
|
|
<h2>完善个人信息<span>2</span>/4</h2>
|
|
|
<p>完善资料,才能给您精准匹配对象哦~</p>
|
|
@@ -40,7 +40,7 @@
|
|
|
</view>
|
|
|
<view class="jpLogin-input">
|
|
|
<u-form-item :required="true"><u-input v-model="form.work_corporation" placeholder="我的工作单位"/></u-form-item>
|
|
|
- <u-icon custom-prefix="custom-icon" name="information-line" class="jpLogin-warn"></u-icon>
|
|
|
+ <u-icon custom-prefix="custom-icon" name="information-line" class="jpLogin-warn" @click='tips'></u-icon>
|
|
|
</view>
|
|
|
<view class="jpLogin-input">
|
|
|
<u-form-item :required="true">
|
|
@@ -69,7 +69,7 @@
|
|
|
</view>
|
|
|
<view class="jpLogin-textarea">
|
|
|
<u-form-item>
|
|
|
- <u-input v-model="form.self_assess" type="textarea" placeholder="" />
|
|
|
+ <u-input v-model="form.self_assess" type="textarea" placeholder=" " />
|
|
|
|
|
|
</u-form-item>
|
|
|
</view>
|
|
@@ -353,16 +353,26 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(personal_info.education!=null){
|
|
|
+ if(personal_info.education!=null){
|
|
|
+
|
|
|
+ let index = _self.education_ranges.findIndex(item => item.value === personal_info.education);
|
|
|
+ if(index>=0){
|
|
|
+ _self.defaultData.education = [index]
|
|
|
+ _self.form.education = _self.education_ranges[index].name;
|
|
|
+ _self.form.educationId = _self.education_ranges[index].value;
|
|
|
+ }
|
|
|
+ //console.log('default'+JSON.stringify(_self.defaultData.education));
|
|
|
+ /*
|
|
|
for(let i = 0;i< _self.education_ranges.length;i++)
|
|
|
{
|
|
|
if(personal_info.education.indexOf(_self.education_ranges[i].value)>=0)
|
|
|
{
|
|
|
_self.form.education = _self.education_ranges[i].name;
|
|
|
- _self.form.educationId = _self.education_ranges[i].value;
|
|
|
+ _self.form.educationId = _self.education_ranges[i].value;
|
|
|
+
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
if(personal_info.workUnit!=null){
|
|
@@ -373,8 +383,14 @@
|
|
|
_self.form.work_post = personal_info.post;
|
|
|
}
|
|
|
|
|
|
- if(personal_info.industry!=null){
|
|
|
- for(let i = 0;i< _self.profession_ragnes.length;i++)
|
|
|
+ if(personal_info.industry!=null){
|
|
|
+ let index = _self.profession_ragnes.findIndex(item => item.value === personal_info.industry);
|
|
|
+ if(index>=0){
|
|
|
+ _self.defaultData.profession = [index]
|
|
|
+ _self.form.profession = _self.profession_ragnes[index].name;
|
|
|
+ _self.form.professionId = _self.profession_ragnes[index].value;
|
|
|
+ }
|
|
|
+/* for(let i = 0;i< _self.profession_ragnes.length;i++)
|
|
|
{
|
|
|
if(personal_info.industry.indexOf(_self.profession_ragnes[i].value)>=0)
|
|
|
{
|
|
@@ -382,10 +398,17 @@
|
|
|
_self.form.professionId = _self.profession_ragnes[i].value;
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
|
|
|
- if(personal_info.salaryRange!=null){
|
|
|
+ if(personal_info.salaryRange!=null){
|
|
|
+ let index = _self.salary_ranges.findIndex(item => item.value === personal_info.salaryRange);
|
|
|
+ if(index>=0){
|
|
|
+ _self.defaultData.salary_range = [index]
|
|
|
+ _self.form.salary_range = _self.salary_ranges[index].name;
|
|
|
+ _self.form.salary_rangeId = _self.salary_ranges[index].value;
|
|
|
+ }
|
|
|
+ /*
|
|
|
for(let i = 0;i< _self.salary_ranges.length;i++)
|
|
|
{
|
|
|
if(personal_info.salaryRange.indexOf(_self.salary_ranges[i].value)>=0)
|
|
@@ -394,9 +417,16 @@
|
|
|
_self.form.salary_rangeId = _self.salary_ranges[i].value;
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
- if(personal_info.housingSituation!=null){
|
|
|
+ if(personal_info.housingSituation!=null){
|
|
|
+ let index = _self.house_statuses.findIndex(item => item.value === personal_info.housingSituation);
|
|
|
+ if(index>=0){
|
|
|
+ _self.defaultData.salary_range = [index]
|
|
|
+ _self.form.house_status = _self.house_statuses[index].name;
|
|
|
+ _self.form.house_statusId = _self.house_statuses[index].value;
|
|
|
+ }
|
|
|
+ /*
|
|
|
for(let i = 0;i< _self.house_statuses.length;i++)
|
|
|
{
|
|
|
if(personal_info.housingSituation.indexOf(_self.house_statuses[i].value)>=0)
|
|
@@ -404,9 +434,16 @@
|
|
|
_self.form.house_status = _self.house_statuses[i].name;
|
|
|
_self.form.house_statusId = _self.house_statuses[i].value;
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
- if(personal_info.maritalStatus!=null){
|
|
|
+ if(personal_info.maritalStatus!=null){
|
|
|
+ let index = _self.marriage_statuses.findIndex(item => item.value === personal_info.maritalStatus);
|
|
|
+ if(index>=0){
|
|
|
+ _self.defaultData.salary_range = [index]
|
|
|
+ _self.form.marriage_status = _self.marriage_statuses[index].name;
|
|
|
+ _self.form.marriage_statusId = _self.marriage_statuses[index].value;
|
|
|
+ }
|
|
|
+ /*
|
|
|
for(let i = 0;i< _self.marriage_statuses.length;i++)
|
|
|
{
|
|
|
if(personal_info.maritalStatus.indexOf(_self.marriage_statuses[i].value)>=0)
|
|
@@ -415,11 +452,17 @@
|
|
|
_self.form.marriage_statusId = _self.marriage_statuses[i].value;
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
|
|
|
- if(personal_info.childStatus!=null){
|
|
|
- for(let i = 0;i< _self.children_statuses.length;i++)
|
|
|
+ if(personal_info.childStatus!=null){
|
|
|
+ let index = _self.children_statuses.findIndex(item => item.value === personal_info.childStatus);
|
|
|
+ if(index>=0){
|
|
|
+ _self.defaultData.children_status = [index]
|
|
|
+ _self.form.children_status = _self.children_statuses[index].name;
|
|
|
+ _self.form.children_statusId = _self.children_statuses[index].value;
|
|
|
+ }
|
|
|
+/* for(let i = 0;i< _self.children_statuses.length;i++)
|
|
|
{
|
|
|
if(personal_info.childStatus.indexOf(_self.children_statuses[i].value)>=0)
|
|
|
{
|
|
@@ -427,7 +470,7 @@
|
|
|
_self.form.children_statusId = _self.children_statuses[i].value;
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
|
|
|
if(personal_info.selfEvaluation!=null){
|
|
@@ -455,6 +498,17 @@
|
|
|
_self.get_options();
|
|
|
},
|
|
|
methods:{
|
|
|
+ tips(){
|
|
|
+ let param = {
|
|
|
+ type: 'default',
|
|
|
+ title: '请填写真实单位,保密项',
|
|
|
+ message: "请填写真实单位,保密项",
|
|
|
+ url: '/pages/componentsB/tag/tag',
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/jump.png'
|
|
|
+ };
|
|
|
+
|
|
|
+ this.$refs.uToast.show({...param})
|
|
|
+ },
|
|
|
init_city_data(){
|
|
|
for(let i = 0;i< provinceData.length;i++){
|
|
|
let province = provinceData[i];
|
|
@@ -498,7 +552,7 @@
|
|
|
console.log('item'+JSON.stringify(this.interests[index]))
|
|
|
},
|
|
|
get_options(){
|
|
|
- console.log('get options')
|
|
|
+// console.log('get options')
|
|
|
// #ifdef APP-NVUE
|
|
|
const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
|
|
|
// #endif
|
|
@@ -738,6 +792,8 @@
|
|
|
if(_self.form.self_assess.length>0)
|
|
|
{
|
|
|
_self.personal_info.selfEvaluation = _self.form.self_assess;
|
|
|
+ }else{
|
|
|
+ _self.personal_info.selfEvaluation = '';
|
|
|
}
|
|
|
let interest = ''
|
|
|
//console.log('interest'+JSON.stringify(_self.interests))
|