...
|
...
|
@@ -676,12 +676,21 @@ const bankCard = (req, res, next) => { |
|
|
let uid = req.user.uid;
|
|
|
|
|
|
installmentModel.getBankCards(uid).then((result) => {
|
|
|
let noBank = true;
|
|
|
|
|
|
_.forEach(result, (val) => {
|
|
|
if (val.validStatus === false) {
|
|
|
noBank = false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
res.render('installment/bank-card', {
|
|
|
module: 'home',
|
|
|
page: 'bank-card',
|
|
|
title: '我的银行卡',
|
|
|
isInstallmentPage: true,
|
|
|
accountList: result,
|
|
|
noBank: noBank,
|
|
|
userName: _.get(result, '[0].userName')
|
|
|
});
|
|
|
}).catch((err) => {
|
...
|
...
|
|