|
@@ -88,7 +88,7 @@ Page({ |
|
@@ -88,7 +88,7 @@ Page({ |
88
|
lefttext: "添加家庭成员并申报",
|
88
|
lefttext: "添加家庭成员并申报",
|
89
|
righttext: "确定为该选择的人申报",
|
89
|
righttext: "确定为该选择的人申报",
|
90
|
},
|
90
|
},
|
91
|
- reduce_amount:0,
|
91
|
+ reduce_amount: 0,
|
92
|
selected_reduceindex: 0,
|
92
|
selected_reduceindex: 0,
|
93
|
selected_addindex: 0
|
93
|
selected_addindex: 0
|
94
|
},
|
94
|
},
|
|
@@ -264,7 +264,7 @@ Page({ |
|
@@ -264,7 +264,7 @@ Page({ |
264
|
goadd: function(e) { //添加
|
264
|
goadd: function(e) { //添加
|
265
|
console.log("goadd", e)
|
265
|
console.log("goadd", e)
|
266
|
var that = this
|
266
|
var that = this
|
267
|
- if (this.data.cur_status == 'support_duty'){
|
267
|
+ if (this.data.cur_status == 'support_duty') {
|
268
|
if (this.data.issinglechildData.selected.length < 1) {
|
268
|
if (this.data.issinglechildData.selected.length < 1) {
|
269
|
this.showToast("请选择是否独生子女")
|
269
|
this.showToast("请选择是否独生子女")
|
270
|
return
|
270
|
return
|
|
@@ -360,10 +360,11 @@ Page({ |
|
@@ -360,10 +360,11 @@ Page({ |
360
|
for (var i = 0; i < data.items.length; i++) {
|
360
|
for (var i = 0; i < data.items.length; i++) {
|
361
|
if (data.items[i].family_ties == '子' || data.items[i].family_ties == '女') {
|
361
|
if (data.items[i].family_ties == '子' || data.items[i].family_ties == '女') {
|
362
|
childRelativelist.push(data.items[i])
|
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
|
olderRelativelist.push(data.items[i])
|
365
|
olderRelativelist.push(data.items[i])
|
|
|
366
|
+ } else {
|
|
|
367
|
+ medicalRelativelist.push(data.items[i])
|
367
|
}
|
368
|
}
|
368
|
}
|
369
|
}
|
369
|
childmodal.datas = childRelativelist
|
370
|
childmodal.datas = childRelativelist
|
|
@@ -478,14 +479,14 @@ Page({ |
|
@@ -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
|
this.setData({
|
484
|
this.setData({
|
484
|
reduce_amount: parseFloat(e.detail.value)
|
485
|
reduce_amount: parseFloat(e.detail.value)
|
485
|
})
|
486
|
})
|
486
|
},
|
487
|
},
|
487
|
|
488
|
|
488
|
- showToast: function (data) {
|
489
|
+ showToast: function(data) {
|
489
|
if (data && data.length > 0) {
|
490
|
if (data && data.length > 0) {
|
490
|
wx.showToast({
|
491
|
wx.showToast({
|
491
|
title: data,
|
492
|
title: data,
|
|
@@ -498,7 +499,7 @@ Page({ |
|
@@ -498,7 +499,7 @@ Page({ |
498
|
* Lifecycle function--Called when page hide
|
499
|
* Lifecycle function--Called when page hide
|
499
|
*/
|
500
|
*/
|
500
|
onHide: function() {
|
501
|
onHide: function() {
|
501
|
-
|
502
|
+
|
502
|
},
|
503
|
},
|
503
|
|
504
|
|
504
|
/**
|
505
|
/**
|