...
|
...
|
@@ -14,6 +14,7 @@ const crypto = global.yoho.crypto; |
|
|
const helpers = global.yoho.helpers;
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
const searchModel = require(`${mRoot}/search`);
|
|
|
const searchProcess = require(`${utils}/search-process`);
|
|
|
|
|
|
/**
|
|
|
* 从 useragent 获取 uid
|
...
|
...
|
@@ -236,7 +237,7 @@ const category = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
searchModel.getSearchData(initialData).then((firstPageGoods) => {
|
|
|
res.render('search/goods-list', {
|
|
|
res.render('search/goods-list', Object.assign({
|
|
|
_noLazy: true, // 首屏不使用lazyload
|
|
|
module: 'product',
|
|
|
page: 'search-list',
|
...
|
...
|
@@ -252,7 +253,7 @@ const category = (req, res, next) => { |
|
|
localCss: true,
|
|
|
appPath: appPath,
|
|
|
introText: req.query.intro_text
|
|
|
});
|
|
|
}, searchProcess.getListSeoData(req.query.gender, req.query.title || req.query.sort_name)));
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
...
|
...
|
|