...
|
...
|
@@ -144,8 +144,46 @@ const index = (req, res, next) => { |
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 逛标签页
|
|
|
* @param req
|
|
|
* @param res
|
|
|
* @param next
|
|
|
*/
|
|
|
const tag = (req, res, next) => {
|
|
|
let headerData = headerModel.setNav({
|
|
|
navTitle: '逛标签页'
|
|
|
});
|
|
|
|
|
|
let responseData = {
|
|
|
pageHeader: headerData,
|
|
|
module: 'guang',
|
|
|
page: 'index-tag',
|
|
|
title: '逛标签页',
|
|
|
pageFooter: true
|
|
|
};
|
|
|
|
|
|
let param = {
|
|
|
tag: req.query.tag || '逛标签页h5', // TODO
|
|
|
channel: req.query.channel,
|
|
|
isApp: req.query.app_version || req.query.appVersion || false,
|
|
|
gender: req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || 1,
|
|
|
uid: req.user.uid || 6228593, // TODO
|
|
|
udid: req.sessionID
|
|
|
};
|
|
|
|
|
|
if (param.isApp === false) {
|
|
|
responseData.pageHeader.navTitle = param.tag;
|
|
|
}
|
|
|
|
|
|
indexModel.getTagEditor(param).then(result => {
|
|
|
res.render('index/list', responseData);
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
editor,
|
|
|
pageData,
|
|
|
index
|
|
|
index,
|
|
|
tag
|
|
|
}; |
...
|
...
|
|