Authored by biao

update for lazy class

<div class="ad-banner">
{{#adBanner}}
<img class="lazy" data-original="{{image img 864 120}}" alt="">
<img class="lazy-img" data-original="{{image img 864 120}}" alt="">
{{/adBanner}}
</div>
... ...
<div class="ad-container clearfix">
{{# brandsAd}}
<div class="ad {{#if @first}}first{{/if}}">
<img class="lazy" data-original="{{image img 165 165}}" alt="">
<img class="lazy-img" data-original="{{image img 165 165}}" alt="">
{{> brand-text-box}}
</div>
{{/ brandsAd}}
... ...
{{# classicBrands}}
<div class="brand-img-box {{#if right}}right{{/if}} {{#if bottomSpace}}mb10{{/if}}">
{{# big}}
<img class="big-img lazy" data-original="{{image img 426 250}}" alt="big-img">
<img class="big-img lazy-img" data-original="{{image img 426 250}}" alt="big-img">
{{/ big}}
{{# small}}
<img class="small-img lazy {{#if @first}}first{{/if}}" data-original="{{image img 213 213}}" alt="big-img">
<img class="small-img lazy-img {{#if @first}}first{{/if}}" data-original="{{image img 213 213}}" alt="big-img">
{{/ small}}
</div>
{{/ classicBrands}}
... ...
... ... @@ -4,12 +4,12 @@
{{# editorial}}
<div class="news left">
{{# big}}
<img class="lazy" data-original="{{image img 288 375}}" alt="">
<img class="lazy-img" data-original="{{image img 288 375}}" alt="">
{{/ big}}
</div>
<div class="news right">
{{# small}}
<img class="lazy {{#if bottomSpace}}bottom-space{{/if}} {{#if rightSpace}}right-space{{/if}}" data-original="{{image img 260 176}}" alt="">
<img class="lazy-img {{#if bottomSpace}}bottom-space{{/if}} {{#if rightSpace}}right-space{{/if}}" data-original="{{image img 260 176}}" alt="">
{{/ small}}
</div>
{{/ editorial}}
... ...
... ... @@ -4,7 +4,7 @@
{{# newArrivals}}
<div class="arrival-item {{#if smallImg}}small-img{{/if}} {{#if @last}}last{{^}}normal{{/if}}">
{{#if even}}
<img class="lazy" data-original="{{image img 245 370}}" alt="">
<img class="lazy-img" data-original="{{image img 245 370}}" alt="">
<div class="brand-name">
<span class="bottom">{{name}}</span>
</div>
... ... @@ -12,7 +12,7 @@
<div class="brand-name">
<span class="top">{{name}}</span>
</div>
<img class="lazy" data-original="{{image img 245 370}}" alt="">
<img class="lazy-img" data-original="{{image img 245 370}}" alt="">
{{/if}}
</div>
{{/ newArrivals}}
... ...
... ... @@ -7,7 +7,7 @@
{{#if @first}}
<img src="{{image img 1150 450}}">
{{^}}
<img class="lazy" data-original="{{image img 1150 450}}" alt="">
<img class="lazy-img" data-original="{{image img 1150 450}}" alt="">
{{/if}}
</a>
{{# tips}}
... ...
... ... @@ -8,7 +8,7 @@ var lazyLoad = require('yoho-jquery-lazyload');
require('../plugins/slider');
lazyLoad($('img.lazy'));
lazyLoad($('img.lazy-img'));
$('.slide-container').slider();
... ...