正在显示
3 个修改的文件
包含
16 行增加
和
11 行删除
... | ... | @@ -90,8 +90,8 @@ |
90 | 90 | <!-- 赡养老人 --> |
91 | 91 | <view style='padding:30rpx' wx:if="{{cur_status=='support_duty'}}"> |
92 | 92 | <view style='height:90rpx;width:100%;clear:both;'> |
93 | - <text class='text_left'>赡养类型</text> | |
94 | - <text class='text_right_333'>{{datas.support_type}}</text> | |
93 | + <text class='text_left'>是否独生子女</text> | |
94 | + <text class='text_right_333'>{{singlechildtype[datas.support_type]}}</text> | |
95 | 95 | </view> |
96 | 96 | <view style='height:90rpx;width:100%;clear:both;'> |
97 | 97 | <text class='text_left'>被赡养人姓名</text> | ... | ... |
... | ... | @@ -88,7 +88,7 @@ Page({ |
88 | 88 | lefttext: "添加家庭成员并申报", |
89 | 89 | righttext: "确定为该选择的人申报", |
90 | 90 | }, |
91 | - reduce_amount:0, | |
91 | + reduce_amount: 0, | |
92 | 92 | selected_reduceindex: 0, |
93 | 93 | selected_addindex: 0 |
94 | 94 | }, |
... | ... | @@ -264,7 +264,7 @@ Page({ |
264 | 264 | goadd: function(e) { //添加 |
265 | 265 | console.log("goadd", e) |
266 | 266 | var that = this |
267 | - if (this.data.cur_status == 'support_duty'){ | |
267 | + if (this.data.cur_status == 'support_duty') { | |
268 | 268 | if (this.data.issinglechildData.selected.length < 1) { |
269 | 269 | this.showToast("请选择是否独生子女") |
270 | 270 | return |
... | ... | @@ -360,10 +360,11 @@ Page({ |
360 | 360 | for (var i = 0; i < data.items.length; i++) { |
361 | 361 | if (data.items[i].family_ties == '子' || data.items[i].family_ties == '女') { |
362 | 362 | childRelativelist.push(data.items[i]) |
363 | - } else if (data.items[i].family_ties != '祖父母' && data.items[i].family_ties != '外祖父母') { | |
364 | - medicalRelativelist.push(data.items[i]) | |
365 | - } else if (data.items[i].family_ties == '祖父母' || data.items[i].family_ties == '外祖父母') { | |
363 | + } | |
364 | + if (data.items[i].family_ties == '父母' || data.items[i].family_ties == '祖父母' || data.items[i].family_ties == '外祖父母') { | |
366 | 365 | olderRelativelist.push(data.items[i]) |
366 | + } else { | |
367 | + medicalRelativelist.push(data.items[i]) | |
367 | 368 | } |
368 | 369 | } |
369 | 370 | childmodal.datas = childRelativelist |
... | ... | @@ -478,14 +479,14 @@ Page({ |
478 | 479 | } |
479 | 480 | }, |
480 | 481 | |
481 | - bindinput:function(e){ | |
482 | - console.log("bindinput",e) | |
482 | + bindinput: function(e) { | |
483 | + console.log("bindinput", e) | |
483 | 484 | this.setData({ |
484 | 485 | reduce_amount: parseFloat(e.detail.value) |
485 | 486 | }) |
486 | 487 | }, |
487 | 488 | |
488 | - showToast: function (data) { | |
489 | + showToast: function(data) { | |
489 | 490 | if (data && data.length > 0) { |
490 | 491 | wx.showToast({ |
491 | 492 | title: data, |
... | ... | @@ -498,7 +499,7 @@ Page({ |
498 | 499 | * Lifecycle function--Called when page hide |
499 | 500 | */ |
500 | 501 | onHide: function() { |
501 | - | |
502 | + | |
502 | 503 | }, |
503 | 504 | |
504 | 505 | /** | ... | ... |
请
注册
或
登录
后发表评论