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