...
|
...
|
@@ -23,9 +23,10 @@ const _processAmtList = (listData, queryDays) => { |
|
|
currFeeCount: 0
|
|
|
};
|
|
|
|
|
|
|
|
|
if (listData !== 'NULL') {
|
|
|
let list = listData.amtList;
|
|
|
|
|
|
if (list) {
|
|
|
_.forEach(list, (data, key) => {
|
|
|
// 第一条选中
|
|
|
if (key === 0) {
|
...
|
...
|
@@ -106,15 +107,15 @@ const _processAmtList = (listData, queryDays) => { |
|
|
|
|
|
// 处理还款记录数据
|
|
|
const _processRepayList = (list) => {
|
|
|
list = list || {};
|
|
|
|
|
|
if (list.rePayList.length > 0) {
|
|
|
if (list !== 'NULL') {
|
|
|
_.forEach(list.rePayList, (data) => {
|
|
|
if (data.status === 1) {
|
|
|
data.repayStatus = '已还清';
|
|
|
data.txt = '还款成功!';
|
|
|
data.isTwo = true;
|
|
|
data.isThree = true;
|
|
|
delete data.desc;
|
|
|
} else if (data.status === 2) {
|
|
|
data.repayStatus = '还款失败';
|
|
|
data.txt = `还款失败,${data.desc}`;
|
...
|
...
|
@@ -123,6 +124,7 @@ const _processRepayList = (list) => { |
|
|
} else {
|
|
|
data.repayStatus = '还款中';
|
|
|
data.txt = '预计1-2分钟内还款成功,<br>请到还款记录查看还款结果';
|
|
|
delete data.desc;
|
|
|
}
|
|
|
|
|
|
data.url = `/home/installment/repay/detail?id=${data.prePayNo}`;
|
...
|
...
|
|