...
|
...
|
@@ -18,7 +18,7 @@ const _serverCrash = (res, params) => { |
|
|
// 还款列表公共处理块
|
|
|
const _repaymentList = (req, res, opt, params) => {
|
|
|
params = _.assign({
|
|
|
uid: req.cookies.installmentUid || 1
|
|
|
uid: req.cookies.installmentUid
|
|
|
}, params);
|
|
|
|
|
|
installmentModel.getQueryAmtList(params).then((result) => {
|
...
|
...
|
@@ -262,7 +262,7 @@ const repayRecordPage = (req, res) => { |
|
|
// ajax 请求还款记录
|
|
|
const getRepayRecord = (req, res) => {
|
|
|
let params = _.assign({
|
|
|
uid: req.cookies.installmentUid || 1,
|
|
|
uid: req.cookies.installmentUid,
|
|
|
pageNo: req.query.page || 1
|
|
|
});
|
|
|
|
...
|
...
|
@@ -358,7 +358,7 @@ function getRealIP(req) { |
|
|
const activateService = (req, res) => {
|
|
|
|
|
|
installmentModel.activateService({
|
|
|
uid: req.cookies.installmentUid || 532892,
|
|
|
uid: req.cookies.installmentUid,
|
|
|
userName: req.body.userName,
|
|
|
identityCardNo: req.body.identityCardNo,
|
|
|
cardNo: req.body.cardNo,
|
...
|
...
|
@@ -382,7 +382,7 @@ const activateService = (req, res) => { |
|
|
const getBankInfo = (req, res) => {
|
|
|
installmentModel.getBankInfo({
|
|
|
cardNo: req.query.cardNo,
|
|
|
uid: req.cookies.installmentUid || 512579468 // TODO: fix uid
|
|
|
uid: req.cookies.installmentUid
|
|
|
}).then((result)=> {
|
|
|
res.json(result);
|
|
|
}).catch(() => {
|
...
|
...
|
@@ -415,7 +415,7 @@ const orderIndex = (req, res) => { |
|
|
|
|
|
const orderList = (req, res) => {
|
|
|
const params = {
|
|
|
uid: req.cookies.installmentUid || 8041876, // TODO: fix me
|
|
|
uid: req.cookies.installmentUid,
|
|
|
type: req.query.type || 1,
|
|
|
page: req.query.page || 1,
|
|
|
limit: req.query.limit || 10
|
...
|
...
|
@@ -451,7 +451,7 @@ const orderList = (req, res) => { |
|
|
|
|
|
const orderDetail = (req, res) => {
|
|
|
const params = {
|
|
|
uid: req.cookies.installmentUid || 8041876, // TODO: fix me
|
|
|
uid: req.cookies.installmentUid,
|
|
|
orderCode: req.params.id
|
|
|
};
|
|
|
|
...
|
...
|
@@ -545,7 +545,7 @@ const orderDetail = (req, res) => { |
|
|
// 还款详情
|
|
|
const repayDetail = (req, res) => {
|
|
|
let params = {
|
|
|
uid: req.cookies.installmentUid || 512579468,
|
|
|
uid: req.cookies.installmentUid,
|
|
|
rePayNo: req.query.id || '',
|
|
|
pageNo: 1
|
|
|
};
|
...
|
...
|
@@ -607,7 +607,7 @@ const serverCrash = (req, res) => { |
|
|
|
|
|
// 银行卡列表
|
|
|
const bankCard = (req, res) => {
|
|
|
let uid = req.cookies.installmentUid || 512579468;
|
|
|
let uid = req.cookies.installmentUid;
|
|
|
|
|
|
installmentModel.getBankCards(uid).then((result) => {
|
|
|
res.render('installment/bank-card', {
|
...
|
...
|
@@ -628,7 +628,6 @@ const bankCard = (req, res) => { |
|
|
|
|
|
// 银行卡详情
|
|
|
const cardDetail = (req, res) => {
|
|
|
|
|
|
installmentModel.getCardDetail(req.cookies.installmentUid, req.query.cardIdNo).then(result => {
|
|
|
res.render('installment/card-detail', {
|
|
|
module: 'home',
|
...
|
...
|
|