正在显示
1 个修改的文件
包含
8 行增加
和
3 行删除
@@ -821,9 +821,14 @@ Page({ | @@ -821,9 +821,14 @@ Page({ | ||
821 | switch (this.data.cur_index + '') { | 821 | switch (this.data.cur_index + '') { |
822 | case 'children_education': | 822 | case 'children_education': |
823 | this.dealCardType(data.children_id_card_type, 'childrencardtype')//为防止干扰其他字段,需要先执行 | 823 | this.dealCardType(data.children_id_card_type, 'childrencardtype')//为防止干扰其他字段,需要先执行 |
824 | + var studystartdate = this.data.studystartdate | ||
825 | + var schoolCountryData = this.data.schoolCountryData | ||
824 | if (data.education_period.indexOf('学前') > -1){ | 826 | if (data.education_period.indexOf('学前') > -1){ |
825 | - var studystartdate = this.data.studystartdate | ||
826 | studystartdate.disabled = true | 827 | studystartdate.disabled = true |
828 | + schoolCountryData.isrequre = false | ||
829 | + this.setData({ | ||
830 | + child_edu_pre: true | ||
831 | + }) | ||
827 | } | 832 | } |
828 | var setData = {} | 833 | var setData = {} |
829 | this.data.countryData.selected = data.children_nation | 834 | this.data.countryData.selected = data.children_nation |
@@ -876,10 +881,10 @@ Page({ | @@ -876,10 +881,10 @@ Page({ | ||
876 | setData.childedudegreeData = childedudegreeData | 881 | setData.childedudegreeData = childedudegreeData |
877 | } | 882 | } |
878 | if (data.school_country && data.school_country.length) { | 883 | if (data.school_country && data.school_country.length) { |
879 | - var schoolCountryData = this.data.schoolCountryData | ||
880 | schoolCountryData.selected = data.school_country | 884 | schoolCountryData.selected = data.school_country |
881 | - setData.schoolCountryData = schoolCountryData | ||
882 | } | 885 | } |
886 | + setData.schoolCountryData = schoolCountryData | ||
887 | + | ||
883 | if (data.school_name && data.school_name.length) { | 888 | if (data.school_name && data.school_name.length) { |
884 | setData.school_name = data.school_name | 889 | setData.school_name = data.school_name |
885 | } | 890 | } |
请
注册
或
登录
后发表评论