正在显示
1 个修改的文件
包含
18 行增加
和
4 行删除
| @@ -52,6 +52,7 @@ Page({ | @@ -52,6 +52,7 @@ Page({ | ||
| 52 | rentAddress_haschanged: false, | 52 | rentAddress_haschanged: false, |
| 53 | extrainfo_arr: ["请上传子女出生证明、学籍信息凭证、学费凭证、本人结婚证和分摊协议", "请上传学历学籍凭证", "请上传出生证明或关系证明、独生子女证、分摊协议、其他法定赡养人赡养证明", "请上传诊断书和医疗费用收据", "请上传首套房证明、还款证明、不动产登记证、结婚证和夫妻约定抵扣协议"], | 53 | extrainfo_arr: ["请上传子女出生证明、学籍信息凭证、学费凭证、本人结婚证和分摊协议", "请上传学历学籍凭证", "请上传出生证明或关系证明、独生子女证、分摊协议、其他法定赡养人赡养证明", "请上传诊断书和医疗费用收据", "请上传首套房证明、还款证明、不动产登记证、结婚证和夫妻约定抵扣协议"], |
| 54 | cur_index: '', | 54 | cur_index: '', |
| 55 | + child_edu_pre: false, | ||
| 55 | 56 | ||
| 56 | hasLoverData: { | 57 | hasLoverData: { |
| 57 | label: '是否有配偶', | 58 | label: '是否有配偶', |
| @@ -495,7 +496,7 @@ Page({ | @@ -495,7 +496,7 @@ Page({ | ||
| 495 | bindtype: 'school_country', | 496 | bindtype: 'school_country', |
| 496 | isrequre: true, | 497 | isrequre: true, |
| 497 | selected: '中国', | 498 | selected: '中国', |
| 498 | - isblack: 'true', | 499 | + // isblack: 'true', |
| 499 | values: [], | 500 | values: [], |
| 500 | placeholder: '中国', | 501 | placeholder: '中国', |
| 501 | onChange: 'onPickerSelect', | 502 | onChange: 'onPickerSelect', |
| @@ -1491,9 +1492,15 @@ Page({ | @@ -1491,9 +1492,15 @@ Page({ | ||
| 1491 | return | 1492 | return |
| 1492 | } | 1493 | } |
| 1493 | } | 1494 | } |
| 1494 | - if (!formdata.school_name || formdata.school_name.length < 1) { | ||
| 1495 | - this.showToast('请填写就读学校') | ||
| 1496 | - return | 1495 | + if (!this.data.child_edu_pre){ |
| 1496 | + if (this.data.schoolCountryData.selected.length < 1) { | ||
| 1497 | + this.showToast('请选择就读国家') | ||
| 1498 | + return | ||
| 1499 | + } | ||
| 1500 | + if (!formdata.school_name || formdata.school_name.length < 1) { | ||
| 1501 | + this.showToast('请填写就读学校') | ||
| 1502 | + return | ||
| 1503 | + } | ||
| 1497 | } | 1504 | } |
| 1498 | if (this.data.hasLoverData.selected.length < 1) { | 1505 | if (this.data.hasLoverData.selected.length < 1) { |
| 1499 | this.showToast('请选择是否有配偶') | 1506 | this.showToast('请选择是否有配偶') |
| @@ -2485,6 +2492,13 @@ Page({ | @@ -2485,6 +2492,13 @@ Page({ | ||
| 2485 | this.setData({ | 2492 | this.setData({ |
| 2486 | childedudegreeData: childedudegreeData | 2493 | childedudegreeData: childedudegreeData |
| 2487 | }) | 2494 | }) |
| 2495 | + var ifPreprimary = (e.detail.value == '0') | ||
| 2496 | + this.data.schoolCountryData.isrequre = !ifPreprimary | ||
| 2497 | + this.setData({ | ||
| 2498 | + schoolCountryData: this.data.schoolCountryData, | ||
| 2499 | + child_edu_pre: ifPreprimary | ||
| 2500 | + }) | ||
| 2501 | + | ||
| 2488 | break; | 2502 | break; |
| 2489 | // case 'edu_degree': | 2503 | // case 'edu_degree': |
| 2490 | // var edudegree_data = this.data.edudegreeData | 2504 | // var edudegree_data = this.data.edudegreeData |
请
注册
或
登录
后发表评论