...
|
...
|
@@ -9,6 +9,7 @@ |
|
|
const headerModel = require('../../../doraemon/models/header'); // 头部model
|
|
|
const footerModel = require('../../../doraemon/models/footer_tab'); // 底部tab
|
|
|
const indexModel = require('../models/index');
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
/**
|
|
|
* 用户中心首页
|
...
|
...
|
@@ -23,6 +24,8 @@ exports.index = (req, res, next) => { |
|
|
udid: require('md5')(req.ip)
|
|
|
};
|
|
|
|
|
|
let studentSwitch = !_.get(req.app.locals.wap, 'user.removeStudentIdentification', true);
|
|
|
|
|
|
indexModel.index(params).then(result => {
|
|
|
if (result) {
|
|
|
res.render('home', Object.assign(result, {
|
...
|
...
|
@@ -35,7 +38,8 @@ exports.index = (req, res, next) => { |
|
|
boys: true
|
|
|
},
|
|
|
showFooterTab: footerModel.getUrlData('mine'),
|
|
|
localCss: true
|
|
|
localCss: true,
|
|
|
studentSwitch
|
|
|
}));
|
|
|
}
|
|
|
}).catch(next);
|
...
|
...
|
|