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