...
|
...
|
@@ -21,10 +21,10 @@ const _processAmtList = (list, queryDays) => { |
|
|
currFeeCount: 0
|
|
|
};
|
|
|
|
|
|
list = list || [];
|
|
|
list = list || {};
|
|
|
|
|
|
if (list.length > 0) {
|
|
|
_.forEach(list, (data, key) => {
|
|
|
_.forEach(list.amtList, (data, key) => {
|
|
|
// 第一条选中
|
|
|
if (key === 0) {
|
|
|
data.isChecked = true;
|
...
|
...
|
@@ -103,10 +103,10 @@ const _processAmtList = (list, queryDays) => { |
|
|
|
|
|
// 处理还款记录数据
|
|
|
const _processRepayList = (list) => {
|
|
|
list = list || [];
|
|
|
list = list || {};
|
|
|
|
|
|
if (list.length > 0) {
|
|
|
_.forEach(list, (data) => {
|
|
|
_.forEach(list.rePayList, (data) => {
|
|
|
// 组装分期的显示格式
|
|
|
if (data.terms === 1) {
|
|
|
data.stage = data.terms;
|
...
|
...
|
@@ -246,7 +246,7 @@ const getQueryAmtList = (params) => { |
|
|
cache: true
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
return _processAmtList(result.data.amtList, params.queryDays);
|
|
|
return _processAmtList(result.data, params.queryDays);
|
|
|
} else {
|
|
|
logger.error('get queryAmtList data return code is not 200');
|
|
|
return Promise.reject(result);
|
...
|
...
|
@@ -359,7 +359,7 @@ const getQueryRePayList = (params) => { |
|
|
cache: true
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
return _processRepayList(result.data.rePayList);
|
|
|
return _processRepayList(result.data);
|
|
|
} else {
|
|
|
logger.error('get queryRePayList data return code is not 200');
|
|
|
return '';
|
...
|
...
|
|