...
|
...
|
@@ -117,7 +117,8 @@ const list = (req, res, next) => { |
|
|
title: title,
|
|
|
goodList: params,
|
|
|
firstPageGoodsList: result[2].list || [],
|
|
|
pageFooter: true
|
|
|
pageFooter: true,
|
|
|
shopId: params.shop_id || ''
|
|
|
});
|
|
|
}).catch(next);
|
|
|
}
|
...
|
...
|
@@ -182,7 +183,8 @@ const search = (req, res, next) => { |
|
|
params.limit = 24;
|
|
|
searchModel.getSearchData(params).then((result) => {
|
|
|
|
|
|
if (result && result.list && parseInt(params.page) === 1 && parseInt(params.start) > 0) {
|
|
|
if (result && result.list && result.list.length > params.start &&
|
|
|
parseInt(params.page) === 1 && parseInt(params.start) > 0) {
|
|
|
// 首屏渲染时,使用 'start' 参数裁减已渲染数据
|
|
|
result.list = result.list.slice(params.start || 0);
|
|
|
}
|
...
|
...
|
|