正在显示
1 个修改的文件
包含
15 行增加
和
1 行删除
... | ... | @@ -1015,7 +1015,8 @@ Page({ |
1015 | 1015 | setData.owner_id_card_no = data.owner_id_card_no |
1016 | 1016 | |
1017 | 1017 | } else if (this.data.house_type == 'house_fund_loan'){ |
1018 | - | |
1018 | + this.handleHasLover(data.has_spouse == 'y') | |
1019 | + | |
1019 | 1020 | if (data.house_address && data.house_address.province) { |
1020 | 1021 | var houseLocateInfo = this.data.houseLocateInfo |
1021 | 1022 | houseLocateInfo.requestdata = data.house_address |
... | ... | @@ -2006,6 +2007,13 @@ Page({ |
2006 | 2007 | // }) |
2007 | 2008 | // } |
2008 | 2009 | // }, |
2010 | + handleHasLover: function (hasLover) { | |
2011 | + this.data.beforemarryData.selected = hasLover ? this.data.beforemarryData.selected : '否' | |
2012 | + this.data.beforemarryData.disabled = hasLover ? false : true | |
2013 | + this.setData({ | |
2014 | + beforemarryData: this.data.beforemarryData | |
2015 | + }) | |
2016 | + }, | |
2009 | 2017 | onPickerSelect: function(e) { |
2010 | 2018 | console.log('picker发送选择改变,携带值为', e) |
2011 | 2019 | switch (e.currentTarget.id) { |
... | ... | @@ -2017,6 +2025,12 @@ Page({ |
2017 | 2025 | hasLoverData: hasLoverData, |
2018 | 2026 | hasLover: hasLover |
2019 | 2027 | }) |
2028 | + if (hasLoverData.selected == hasLoverData.values[e.detail.value]) { | |
2029 | + return | |
2030 | + } | |
2031 | + if (this.data.cur_index == 'house_fund' && this.data.house_type == 'house_fund_loan') { | |
2032 | + this.handleHasLover(hasLover) | |
2033 | + } | |
2020 | 2034 | break; |
2021 | 2035 | case 'lovercardtype': |
2022 | 2036 | var lover_cardtypeData = this.data.lovercardtypeData | ... | ... |
请
注册
或
登录
后发表评论