|
@ -191,13 +191,16 @@ Page({ |
|
|
delete obj[key]; |
|
|
delete obj[key]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (obj.identityNo.length == 18) { |
|
|
if(null != obj.identityNo && obj.identityNo != ''){ |
|
|
this.idNo = obj.identityNo; |
|
|
this.data.form.identityNo = obj.identityNo |
|
|
let temp = '*********'; |
|
|
} |
|
|
let str = obj.identityNo.slice(0, 4); |
|
|
// if (obj.identityNo.length == 18) {
|
|
|
let end = obj.identityNo.slice(15, 18); |
|
|
// this.idNo = obj.identityNo;
|
|
|
obj.identityNo = str + temp + end; |
|
|
// let temp = '*********';
|
|
|
} |
|
|
// let str = obj.identityNo.slice(0, 4);
|
|
|
|
|
|
// let end = obj.identityNo.slice(15, 18);
|
|
|
|
|
|
// obj.identityNo = str + temp + end;
|
|
|
|
|
|
// }
|
|
|
let region = '' |
|
|
let region = '' |
|
|
if(obj.villageName != ''){ |
|
|
if(obj.villageName != ''){ |
|
|
if(obj.villageName.indexOf('-') > 1){ |
|
|
if(obj.villageName.indexOf('-') > 1){ |
|
@ -384,7 +387,6 @@ Page({ |
|
|
newArr: this.data.newArr, |
|
|
newArr: this.data.newArr, |
|
|
changeFlag: true |
|
|
changeFlag: true |
|
|
}) |
|
|
}) |
|
|
console.log(this.data.newArr); |
|
|
|
|
|
}, |
|
|
}, |
|
|
//滑动社区
|
|
|
//滑动社区
|
|
|
bindMultiPickerColumnChangeC(e) { |
|
|
bindMultiPickerColumnChangeC(e) { |
|
@ -587,7 +589,6 @@ Page({ |
|
|
// gridId: '1224104693058306049',
|
|
|
// gridId: '1224104693058306049',
|
|
|
wxCode: res.code |
|
|
wxCode: res.code |
|
|
} |
|
|
} |
|
|
console.log(wxCode); |
|
|
|
|
|
api.getTokenV3(para).then(function (res) { |
|
|
api.getTokenV3(para).then(function (res) { |
|
|
global.Token = res.data.token |
|
|
global.Token = res.data.token |
|
|
wx.removeStorageSync('token') |
|
|
wx.removeStorageSync('token') |
|
@ -635,9 +636,9 @@ Page({ |
|
|
this.showToast('请填写身份证号码') |
|
|
this.showToast('请填写身份证号码') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
this.data.form.identityNo = this.idNo |
|
|
// this.data.form.identityNo = this.idNo
|
|
|
if (this.data.form.identityNo.length != 18) { |
|
|
if (this.data.form.identityNo.length != 6) { |
|
|
this.showToast('请填写正确的身份证号码') |
|
|
this.showToast('请输入身份证号码后6位') |
|
|
return false |
|
|
return false |
|
|
}else { |
|
|
}else { |
|
|
this.data.form.identityNo = this.idNo; |
|
|
this.data.form.identityNo = this.idNo; |
|
@ -759,8 +760,8 @@ Page({ |
|
|
this.showToast('请输入姓名') |
|
|
this.showToast('请输入姓名') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (!this.data.form.identityNo && this.data.form.identityNo.length == 18) { |
|
|
if (!this.data.form.identityNo && this.data.form.identityNo.length == 6) { |
|
|
this.showToast('请填写正确的身份证号码') |
|
|
this.showToast('请输入身份证号码后6位') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (!this.data.form.workIndustry) { |
|
|
if (!this.data.form.workIndustry) { |
|
|