Authored by 郝肖肖

Merge branch 'release/wap-optim' of git.yoho.cn:fe/yohobuywap-node into release/wap-optim

... ... @@ -182,7 +182,7 @@ const search = (req, res, next) => {
params.isApp = req.yoho.isApp;
searchModel.getSearchData(params).then((result) => {
if (parseInt(params.page) === 1 && parseInt(params.start) > 0) {
if (result && result.list && parseInt(params.page) === 1 && parseInt(params.start) > 0) {
// 首屏渲染时,使用 'start' 参数裁减已渲染数据
result.list = result.list.slice(params.start || 0);
}
... ...