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