...
|
...
|
@@ -15,6 +15,17 @@ const _serverCrash = (res, params) => { |
|
|
res.render('installment/server-crash', params);
|
|
|
};
|
|
|
|
|
|
const _banksInit = () => {
|
|
|
const banks = ['农业银行', '中国银行', '工商银行', '建设银行', '光大银行', '兴业银行', '邮储银行', '民生银行', '中信银行', '广发银行'];
|
|
|
|
|
|
if (new Date() >= new Date('2016-10-18 00:00:00')) {
|
|
|
// 2016年10月12日至17日 平安银行业务暂停(平安银行期间不支持服务)
|
|
|
banks.push('平安银行');
|
|
|
}
|
|
|
|
|
|
return banks;
|
|
|
};
|
|
|
|
|
|
// 还款列表公共处理块
|
|
|
const _repaymentList = (req, res, opt, params) => {
|
|
|
params = _.assign({
|
...
|
...
|
@@ -285,24 +296,29 @@ const getRepayRecord = (req, res) => { |
|
|
|
|
|
// 账号管理
|
|
|
const account = (req, res) => {
|
|
|
var url = req.yoho.isApp || req.cookies.isApp ? '/home/installment/account' : '/home/installment/bank-card';
|
|
|
|
|
|
res.render('installment/account', {
|
|
|
module: 'home',
|
|
|
page: 'account',
|
|
|
title: '账号管理',
|
|
|
isInstallmentPage: true,
|
|
|
posId: 7,
|
|
|
url: helpers.appUrlFormat('/home/installment/bank-card', 'go.instalmentMyCard')
|
|
|
url: helpers.appUrlFormat(url, 'go.instalmentMyCard')
|
|
|
});
|
|
|
};
|
|
|
|
|
|
// 添加新银行卡
|
|
|
const bindCard = (req, res) => {
|
|
|
const banks = _banksInit();
|
|
|
|
|
|
res.render('installment/bind-card', {
|
|
|
module: 'home',
|
|
|
page: 'bind-card',
|
|
|
title: req.query.title || '使用新卡还款',
|
|
|
bindCard: {
|
|
|
userName: req.query.name
|
|
|
userName: req.query.name,
|
|
|
banks: banks
|
|
|
},
|
|
|
isInstallmentPage: true
|
|
|
});
|
...
|
...
|
@@ -325,12 +341,7 @@ const postAccount = (req, res) => { |
|
|
};
|
|
|
|
|
|
const startingService = (req, res) => {
|
|
|
const banks = ['农业银行', '中国银行', '工商银行', '建设银行', '光大银行', '兴业银行', '邮储银行', '民生银行', '中信银行', '广发银行'];
|
|
|
|
|
|
if (new Date() >= new Date('2016-10-18 00:00:00')) {
|
|
|
// 2016年10月12日至17日 平安银行业务暂停(平安银行期间不支持服务)
|
|
|
banks.push('平安银行');
|
|
|
}
|
|
|
const banks = _banksInit();
|
|
|
|
|
|
res.render('installment/starting-service', {
|
|
|
module: 'home',
|
...
|
...
|
|