...
|
...
|
@@ -11,7 +11,7 @@ const searchModel = require(`${mRoot}/search`); |
|
|
const _ = require('lodash');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
|
|
|
// 搜索落地页
|
|
|
const list = (req, res, next) => {
|
|
|
let params = Object.assign({}, req.query);
|
|
|
let title = '';
|
...
|
...
|
@@ -106,6 +106,22 @@ const list = (req, res, next) => { |
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
// 分类落地页
|
|
|
const category = (req, res) => {
|
|
|
let params = Object.assign({}, req.query);
|
|
|
|
|
|
res.render('search/goods-list', {
|
|
|
module: 'product',
|
|
|
page: 'search-list',
|
|
|
pageHeader: headerModel.setNav({
|
|
|
navTitle: req.query.title
|
|
|
}),
|
|
|
goodList: params,
|
|
|
showDownloadApp: true,
|
|
|
pageFooter: true
|
|
|
});
|
|
|
};
|
|
|
|
|
|
const search = (req, res, next) => {
|
|
|
let params = Object.assign({}, req.query);
|
|
|
|
...
|
...
|
@@ -138,5 +154,6 @@ let filter = (req, res, next) => { |
|
|
module.exports = {
|
|
|
list,
|
|
|
filter,
|
|
|
search
|
|
|
search,
|
|
|
category
|
|
|
}; |
...
|
...
|
|