...
|
...
|
@@ -337,9 +337,7 @@ const listNew = (req, res, next) => { |
|
|
|
|
|
let seoTitle = _.get(result, 'data.filter.group_sort[0].sub[0].category_name');
|
|
|
|
|
|
if (seoTitle && initialData.category_id) {
|
|
|
categoryIntro = yield redis.getAsync(`category:description:${md5(seoTitle)}`);
|
|
|
} else {
|
|
|
if (!seoTitle || !initialData.category_id) {
|
|
|
seoTitle = '商品列表';
|
|
|
}
|
|
|
|
...
|
...
|
@@ -347,6 +345,8 @@ const listNew = (req, res, next) => { |
|
|
seoTitle = decodeURIComponent(params.sort_name);
|
|
|
}
|
|
|
|
|
|
categoryIntro = yield redis.hmgetAsync(`category:description:${md5(seoTitle)}`, 'category', 'description');
|
|
|
|
|
|
res.render('search/goods-list', Object.assign({
|
|
|
_noLazy: true, // 首屏不使用lazyload
|
|
|
module: 'product',
|
...
|
...
|
|