...
|
...
|
@@ -4,6 +4,7 @@ const mRoot = '../models'; |
|
|
const headerModel = require('../../../doraemon/models/header'); // 头部model
|
|
|
const footerModel = require('../../../doraemon/models/footer_tab'); // 底部tab
|
|
|
const newHomeModel = require(`${mRoot}/new-home`);
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
let yhchannels = {
|
|
|
'1,3': 1,
|
...
|
...
|
@@ -46,6 +47,11 @@ exports.index = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
req.ctx(newHomeModel).index(params).then(result => {
|
|
|
res.render('new-home', Object.assign(responseData, result));
|
|
|
// 为你优选开关
|
|
|
let recommendHide = _.get(req.app.locals.wap, 'ucenter.removePrefe', false);
|
|
|
|
|
|
res.render('new-home', Object.assign(responseData, result, {
|
|
|
recommendHide: recommendHide
|
|
|
}));
|
|
|
}).catch(next);
|
|
|
}; |
...
|
...
|
|