Authored by yyq

index data

... ... @@ -23,10 +23,7 @@ exports.index = (req, res, next) => {
let channel = req.query.channel || req.cookies._Channel || 'boys';
outlets.getOutletsIndexData(req.query, channel).then(result => {
Object.assign(resData, {
result: result,
headerData: result.headerData
});
Object.assign(resData, result);
res.render('outlets/index', resData);
}).catch(next);
... ...
{{# result}}
<div class="outlets-page product-page yoho-page">
{{> common/main-banner}}
<div class="center-content">
... ... @@ -19,5 +18,4 @@
{{> outlets/main-product}}
</div>
</div>
{{/ result}}
\ No newline at end of file
</div>
\ No newline at end of file
... ...