提交 8db0d98247ee9487e8cdfd38af7079899f9fd4eb

作者 wangyu
1 个父辈 9b5727cf

优化申报相关状态

@@ -13,7 +13,6 @@ Page({ @@ -13,7 +13,6 @@ Page({
13 "continuing_education": "继续教育", 13 "continuing_education": "继续教育",
14 "support_duty": "赡养老人", 14 "support_duty": "赡养老人",
15 "medical_fund": "大病医疗", 15 "medical_fund": "大病医疗",
16 - "house_fund": "住房",  
17 "house_fund_rent": "住房", 16 "house_fund_rent": "住房",
18 "house_fund_loan": "住房" 17 "house_fund_loan": "住房"
19 }, 18 },
@@ -47,8 +46,8 @@ Page({ @@ -47,8 +46,8 @@ Page({
47 lookandadd:function(e){ 46 lookandadd:function(e){
48 console.log("lookandadd", e); 47 console.log("lookandadd", e);
49 if (this.data.additiondata.options && this.data.additiondata.options.length>0){ 48 if (this.data.additiondata.options && this.data.additiondata.options.length>0){
50 - var newstatus  
51 - if (this.data.additiondata.options[e.currentTarget.id].indexOf("house_fund"!=-1)){ 49 + var newstatus = this.data.additiondata.options[e.currentTarget.id]
  50 + if (newstatus == 'house_fund_rent' || newstatus == 'house_fund_loan'){
52 newstatus = "house_fund" 51 newstatus = "house_fund"
53 } 52 }
54 wx.navigateTo({ 53 wx.navigateTo({
1 { 1 {
2 - "navigationBarTitleText": "调整使用项" 2 + "navigationBarTitleText": "专项附加扣除"
3 } 3 }
注册登录 后发表评论