Authored by 徐炜

商品列表不使用lazyload

... ... @@ -191,7 +191,8 @@ const search = (req, res, next) => {
res.render('search/page', {
layout: false,
new: result.list,
total: result.total
total: result.total,
_noLazy: params.noLazy || false
});
} else {
res.json(result);
... ...
... ... @@ -31,10 +31,7 @@
{{#if @root._noLazy}}
<img src="{{image default_images 235 314}}"/>
{{else}}
{{!--
<img class="lazy" data-original="{{image default_images 235 314}}"/>
--}}
<img src="{{image default_images 235 314}}"/>
{{/if}}
</a>
{{# is_soon_sold_out}}
... ...
... ... @@ -362,7 +362,8 @@ function search(opt) {
params = {
type: navType,
order: nav.order,
page: page
page: page,
noLazy: true
};
if (shopId) {
... ...