提交 dab9fea377e41164b60889a38fef7d35842c2801

作者 pangy
1 个父辈 6603a3cf

是否有配偶 和 首套扣除逻辑。待测试

... ... @@ -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
... ...
注册登录 后发表评论