Authored by 王水玲

有货分期

@@ -23,9 +23,10 @@ const _processAmtList = (listData, queryDays) => { @@ -23,9 +23,10 @@ const _processAmtList = (listData, queryDays) => {
23 currFeeCount: 0 23 currFeeCount: 0
24 }; 24 };
25 25
  26 +
  27 + if (listData !== 'NULL') {
26 let list = listData.amtList; 28 let list = listData.amtList;
27 29
28 - if (list) {  
29 _.forEach(list, (data, key) => { 30 _.forEach(list, (data, key) => {
30 // 第一条选中 31 // 第一条选中
31 if (key === 0) { 32 if (key === 0) {
@@ -106,15 +107,15 @@ const _processAmtList = (listData, queryDays) => { @@ -106,15 +107,15 @@ const _processAmtList = (listData, queryDays) => {
106 107
107 // 处理还款记录数据 108 // 处理还款记录数据
108 const _processRepayList = (list) => { 109 const _processRepayList = (list) => {
109 - list = list || {};  
110 110
111 - if (list.rePayList.length > 0) { 111 + if (list !== 'NULL') {
112 _.forEach(list.rePayList, (data) => { 112 _.forEach(list.rePayList, (data) => {
113 if (data.status === 1) { 113 if (data.status === 1) {
114 data.repayStatus = '已还清'; 114 data.repayStatus = '已还清';
115 data.txt = '还款成功!'; 115 data.txt = '还款成功!';
116 data.isTwo = true; 116 data.isTwo = true;
117 data.isThree = true; 117 data.isThree = true;
  118 + delete data.desc;
118 } else if (data.status === 2) { 119 } else if (data.status === 2) {
119 data.repayStatus = '还款失败'; 120 data.repayStatus = '还款失败';
120 data.txt = `还款失败,${data.desc}`; 121 data.txt = `还款失败,${data.desc}`;
@@ -123,6 +124,7 @@ const _processRepayList = (list) => { @@ -123,6 +124,7 @@ const _processRepayList = (list) => {
123 } else { 124 } else {
124 data.repayStatus = '还款中'; 125 data.repayStatus = '还款中';
125 data.txt = '预计1-2分钟内还款成功,<br>请到还款记录查看还款结果'; 126 data.txt = '预计1-2分钟内还款成功,<br>请到还款记录查看还款结果';
  127 + delete data.desc;
126 } 128 }
127 129
128 data.url = `/home/installment/repay/detail?id=${data.prePayNo}`; 130 data.url = `/home/installment/repay/detail?id=${data.prePayNo}`;