正在显示
1 个修改的文件
包含
10 行增加
和
8 行删除
... | ... | @@ -68,7 +68,7 @@ Page({ |
68 | 68 | label: '配偶证照类型', |
69 | 69 | bindtype: 'lovercardtype', |
70 | 70 | selected: '', |
71 | - disabled: true, | |
71 | + // disabled: true, | |
72 | 72 | placeholder: '请选择证照类型', |
73 | 73 | values: cardTypeArray, |
74 | 74 | onChange: 'onPickerSelect' |
... | ... | @@ -77,12 +77,10 @@ Page({ |
77 | 77 | label: '出生日期', |
78 | 78 | bindtype: 'loverbirthday', |
79 | 79 | selected: '', |
80 | - disabled: true, | |
80 | + // disabled: true, | |
81 | 81 | placeholder: '请选择出生日期', |
82 | 82 | mode: "date", |
83 | 83 | fields: "day", |
84 | - start: '1970-01-01', | |
85 | - end: '2018-01-01', | |
86 | 84 | onChange: 'onPickerSelect', |
87 | 85 | }, |
88 | 86 | older_relativeData: { |
... | ... | @@ -1101,7 +1099,7 @@ Page({ |
1101 | 1099 | if (data.loan_before_marry && data.loan_before_marry.length) { |
1102 | 1100 | var beforemarryData = this.data.beforemarryData |
1103 | 1101 | beforemarryData.selected = data.loan_before_marry=='y'?'是':'否' |
1104 | - if (!this.data.hasLover){//健壮 | |
1102 | + if (!this.data.hasLover){//健壮(有配偶时不需要设置) | |
1105 | 1103 | this.handleBeforemarry(data.loan_before_marry == 'y') |
1106 | 1104 | } |
1107 | 1105 | setData.beforemarryData = beforemarryData |
... | ... | @@ -2182,10 +2180,13 @@ Page({ |
2182 | 2180 | // } |
2183 | 2181 | // }, |
2184 | 2182 | handleBeforemarry: function (beforemarry) { |
2185 | - var hasLover = beforemarry | |
2183 | + var hasLover = this.data.hasLover | |
2186 | 2184 | var deduction_amount = beforemarry ? (Deduce_amounts_month["house_fund_loan"] / 2) : Deduce_amounts_month["house_fund_loan"] |
2187 | - this.data.hasLoverData.selected = beforemarry ? '是' : '' | |
2188 | 2185 | this.data.hasLoverData.disabled = beforemarry |
2186 | + if (beforemarry){ | |
2187 | + this.data.hasLoverData.selected = '是' | |
2188 | + hasLover = true | |
2189 | + } | |
2189 | 2190 | this.setData({ |
2190 | 2191 | hasLoverData: this.data.hasLoverData, |
2191 | 2192 | hasLover: hasLover, |
... | ... | @@ -2389,7 +2390,7 @@ Page({ |
2389 | 2390 | // }) |
2390 | 2391 | // break; |
2391 | 2392 | case 'lovercardtype': |
2392 | - var lover_cardtypeData = this.data.lover_cardtypeData | |
2393 | + var lover_cardtypeData = this.data.lovercardtypeData | |
2393 | 2394 | var new_type = lover_cardtypeData.values[e.detail.value] |
2394 | 2395 | if (new_type != lover_cardtypeData.selected) { |
2395 | 2396 | this.dealCardType(new_type, 'lovercardtype') |
... | ... | @@ -2397,6 +2398,7 @@ Page({ |
2397 | 2398 | spouse_id_card_no: "" |
2398 | 2399 | }) |
2399 | 2400 | } |
2401 | + break; | |
2400 | 2402 | case 'loverbirthday': |
2401 | 2403 | var lover_birthDate = this.data.loverbirthDate |
2402 | 2404 | lover_birthDate.selected = e.detail.value | ... | ... |
请
注册
或
登录
后发表评论