正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
@@ -94,6 +94,7 @@ Page({ | @@ -94,6 +94,7 @@ Page({ | ||
94 | lefttext: "添加家庭成员并申报", | 94 | lefttext: "添加家庭成员并申报", |
95 | righttext: "确定为该选择的人申报", | 95 | righttext: "确定为该选择的人申报", |
96 | }, | 96 | }, |
97 | + spousedataData:{}, | ||
97 | reduce_amount: -1, | 98 | reduce_amount: -1, |
98 | selected_reduceindex: 0, | 99 | selected_reduceindex: 0, |
99 | selected_addindex: 0 | 100 | selected_addindex: 0 |
@@ -422,6 +423,7 @@ Page({ | @@ -422,6 +423,7 @@ Page({ | ||
422 | var childRelativelist = [] | 423 | var childRelativelist = [] |
423 | var medicalRelativelist = [] | 424 | var medicalRelativelist = [] |
424 | var olderRelativelist = [] | 425 | var olderRelativelist = [] |
426 | + var spousedatalist = [] | ||
425 | var childmodal = this.data.children_modalData | 427 | var childmodal = this.data.children_modalData |
426 | var oldermodal = this.data.support_older_modalData | 428 | var oldermodal = this.data.support_older_modalData |
427 | var medicalmodal = this.data.medical_modalData | 429 | var medicalmodal = this.data.medical_modalData |
@@ -434,11 +436,15 @@ Page({ | @@ -434,11 +436,15 @@ Page({ | ||
434 | } else { | 436 | } else { |
435 | medicalRelativelist.push(data.items[i]) | 437 | medicalRelativelist.push(data.items[i]) |
436 | } | 438 | } |
439 | + if (data.items[i].family_ties == '配偶'){ | ||
440 | + spousedatalist = data.items[i] | ||
441 | + } | ||
437 | } | 442 | } |
438 | childmodal.datas = childRelativelist | 443 | childmodal.datas = childRelativelist |
439 | oldermodal.datas = olderRelativelist | 444 | oldermodal.datas = olderRelativelist |
440 | medicalmodal.datas = medicalRelativelist | 445 | medicalmodal.datas = medicalRelativelist |
441 | this.setData({ | 446 | this.setData({ |
447 | + spousedataData: spousedatalist, | ||
442 | children_modalData: childmodal, | 448 | children_modalData: childmodal, |
443 | support_older_modalData: oldermodal, | 449 | support_older_modalData: oldermodal, |
444 | medical_modalData: medicalmodal | 450 | medical_modalData: medicalmodal |
请
注册
或
登录
后发表评论