...
|
...
|
@@ -326,7 +326,6 @@ const listNew = (req, res, next) => { |
|
|
}
|
|
|
co(function* () {
|
|
|
let result = yield req.ctx(searchModel).getCategoryGoods(initialData);
|
|
|
let categoryIntro = '';
|
|
|
|
|
|
let responseResult = {
|
|
|
list: productProcess.processProductList(result.data.product_list || [], {
|
...
|
...
|
@@ -346,7 +345,12 @@ const listNew = (req, res, next) => { |
|
|
seoTitle = decodeURIComponent(params.sort_name);
|
|
|
}
|
|
|
|
|
|
categoryIntro = yield redis.hmgetAsync(`category:description:${md5(seoTitle)}`, 'category', 'description');
|
|
|
let categoryIntroRedis =
|
|
|
yield redis.hmgetAsync(`category:description:${md5(seoTitle)}`, 'category', 'description');
|
|
|
let categoryIntro = categoryIntroRedis[1] ? {
|
|
|
title: categoryIntroRedis[0],
|
|
|
desc: categoryIntroRedis[1]
|
|
|
} : null;
|
|
|
|
|
|
res.render('search/goods-list', Object.assign({
|
|
|
_noLazy: true, // 首屏不使用lazyload
|
...
|
...
|
|