...
|
...
|
@@ -125,20 +125,27 @@ const _processBankCards = (list) => { |
|
|
list = list || [];
|
|
|
|
|
|
_.forEach(list, (data) => {
|
|
|
let newCardNo = data.cardNo.split('');
|
|
|
let cardNo = newCardNo.length;
|
|
|
|
|
|
data.cardNo = '';
|
|
|
|
|
|
for (let i = 1; i < cardNo; i++) {
|
|
|
if (i < (cardNo - 4)) {
|
|
|
data.cardNo += '*';
|
|
|
} else {
|
|
|
data.cardNo += newCardNo[i - 1];
|
|
|
}
|
|
|
}
|
|
|
// let newCardNo = data.cardNo.split('');
|
|
|
// let cardNo = newCardNo.length;
|
|
|
// data.cardNo = '';
|
|
|
//
|
|
|
//
|
|
|
// for (let i = 1; i < cardNo; i++) {
|
|
|
// if (i < (cardNo - 4)) {
|
|
|
// data.cardNo += '*';
|
|
|
// } else {
|
|
|
// data.cardNo += newCardNo[i - 1];
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
|
|
|
// 正则替换卡号,保留后4位
|
|
|
data.cardNo = data.cardNo.replace(/(\d+)(\d{4})$/, function(a, b, c) {
|
|
|
return b.replace(/\d/g, '*') + c;
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
return list;
|
|
|
};
|
|
|
|
...
|
...
|
@@ -478,12 +485,14 @@ const activateService = (params) => { |
|
|
* 获取银行信息
|
|
|
*
|
|
|
* @param cardNo
|
|
|
* @param uid
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
const getBankInfo = (cardNo) => {
|
|
|
const getBankInfo = (cardNo, uid) => {
|
|
|
return api.get('', {
|
|
|
method: 'user.instalment.getBankInfoByCardNo',
|
|
|
cardNo: cardNo
|
|
|
cardNo: cardNo,
|
|
|
uid: uid
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
|