...
|
...
|
@@ -42,16 +42,26 @@ exports.activity = (req, res) => { |
|
|
|
|
|
exports.willBeEnd = (req, res) => {
|
|
|
let channel = req.query.channel || req.cookies._Channel || 'boys';
|
|
|
let headerData = headerModel.setNavHeader('OUTLET', channel, true, '', null);
|
|
|
let categoryId = req.query.category_id;
|
|
|
|
|
|
outletModel.getNearlyActivity(channel, 2).then(result => {
|
|
|
res.render('outlet/will-end', Object.assign(renderData, result));
|
|
|
outletModel.getNearlyActivity(channel, 2, categoryId).then(result => {
|
|
|
renderData.page = 'outlet-activity';
|
|
|
res.render('outlet/will-end', Object.assign({
|
|
|
pageHeader: headerData,
|
|
|
pageFooter: true
|
|
|
}, renderData, result));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
exports.willBeCome = (req, res) => {
|
|
|
let channel = req.query.channel || req.cookies._Channel || 'boys';
|
|
|
let headerData = headerModel.setNavHeader('OUTLET', channel, true, '', null);
|
|
|
|
|
|
outletModel.getNearlyActivity(channel, 3).then(result => {
|
|
|
res.render('outlet/will-start', Object.assign(renderData, result));
|
|
|
res.render('outlet/will-start', Object.assign({
|
|
|
pageHeader: headerData,
|
|
|
pageFooter: true
|
|
|
}, renderData, result));
|
|
|
});
|
|
|
}; |
...
|
...
|
|