Showing
1 changed file
with
5 additions
and
5 deletions
@@ -14,17 +14,17 @@ const logger = global.yoho.logger; | @@ -14,17 +14,17 @@ const logger = global.yoho.logger; | ||
14 | const camelCase = global.yoho.camelCase; | 14 | const camelCase = global.yoho.camelCase; |
15 | 15 | ||
16 | // 处理还款列表数据 | 16 | // 处理还款列表数据 |
17 | -const _processAmtList = (list, queryDays) => { | 17 | +const _processAmtList = (listData, queryDays) => { |
18 | let overduecount = 0; | 18 | let overduecount = 0; |
19 | let formartData = { | 19 | let formartData = { |
20 | currAmtCount: 0, | 20 | currAmtCount: 0, |
21 | currFeeCount: 0 | 21 | currFeeCount: 0 |
22 | }; | 22 | }; |
23 | 23 | ||
24 | - list = list || {}; | 24 | + let list = listData.amtList; |
25 | 25 | ||
26 | - if (list.length > 0) { | ||
27 | - _.forEach(list.amtList, (data, key) => { | 26 | + if (list) { |
27 | + _.forEach(list, (data, key) => { | ||
28 | // 第一条选中 | 28 | // 第一条选中 |
29 | if (key === 0) { | 29 | if (key === 0) { |
30 | data.isChecked = true; | 30 | data.isChecked = true; |
@@ -105,7 +105,7 @@ const _processAmtList = (list, queryDays) => { | @@ -105,7 +105,7 @@ const _processAmtList = (list, queryDays) => { | ||
105 | const _processRepayList = (list) => { | 105 | const _processRepayList = (list) => { |
106 | list = list || {}; | 106 | list = list || {}; |
107 | 107 | ||
108 | - if (list.length > 0) { | 108 | + if (list.rePayList.length > 0) { |
109 | _.forEach(list.rePayList, (data) => { | 109 | _.forEach(list.rePayList, (data) => { |
110 | // 组装分期的显示格式 | 110 | // 组装分期的显示格式 |
111 | if (data.terms === 1) { | 111 | if (data.terms === 1) { |
-
Please register or login to post a comment