|
@@ -50,7 +50,6 @@ const _repaymentList = (req, res, opt, params) => { |
|
@@ -50,7 +50,6 @@ const _repaymentList = (req, res, opt, params) => { |
50
|
// 开通分期首页
|
50
|
// 开通分期首页
|
51
|
const index = (req, res) => {
|
51
|
const index = (req, res) => {
|
52
|
let uid = req.query.uid;
|
52
|
let uid = req.query.uid;
|
53
|
-
|
|
|
54
|
Promise.all([
|
53
|
Promise.all([
|
55
|
installmentModel.getStauts(uid),
|
54
|
installmentModel.getStauts(uid),
|
56
|
installmentModel.getSearchIntallment({
|
55
|
installmentModel.getSearchIntallment({
|
|
@@ -309,14 +308,23 @@ const getRepayRecord = (req, res) => { |
|
@@ -309,14 +308,23 @@ const getRepayRecord = (req, res) => { |
309
|
// 账号管理
|
308
|
// 账号管理
|
310
|
const account = (req, res) => {
|
309
|
const account = (req, res) => {
|
311
|
var url = req.yoho.isApp || req.cookies.appVersion ? '/home/installment/account' : '/home/installment/bank-card';
|
310
|
var url = req.yoho.isApp || req.cookies.appVersion ? '/home/installment/account' : '/home/installment/bank-card';
|
|
|
311
|
+ if (req.cookies.appVersion) {
|
|
|
312
|
+ var versions = req.cookies.appVersion.split('.');
|
|
|
313
|
+ if (versions.length >= 2) {
|
|
|
314
|
+ if (versions[0] < 5 || (parseInt(versions[0], 10)===5 && versions[1] <= 1)) {
|
312
|
|
315
|
|
|
|
316
|
+ } else {
|
|
|
317
|
+ url = helpers.appUrlFormat(url, 'go.instalmentMyCard')
|
|
|
318
|
+ }
|
|
|
319
|
+ }
|
|
|
320
|
+ }
|
313
|
res.render('installment/account', {
|
321
|
res.render('installment/account', {
|
314
|
module: 'home',
|
322
|
module: 'home',
|
315
|
page: 'account',
|
323
|
page: 'account',
|
316
|
title: '账号管理',
|
324
|
title: '账号管理',
|
317
|
isInstallmentPage: true,
|
325
|
isInstallmentPage: true,
|
318
|
posId: 7,
|
326
|
posId: 7,
|
319
|
- url: helpers.appUrlFormat(url, 'go.instalmentMyCard')
|
327
|
+ url: url
|
320
|
});
|
328
|
});
|
321
|
};
|
329
|
};
|
322
|
|
330
|
|