Authored by unknown

男首优选品牌js修改

... ... @@ -18,6 +18,7 @@ var $ = require('yoho.jquery'),
LogoBrand.prototype = {
init: function() {
this.$element.addClass('logos-' + this.options.showNum);
this._sendRequest();
},
_createHelper: function() {
... ... @@ -72,8 +73,8 @@ var $ = require('yoho.jquery'),
'<a href="\{{href}}"><img class="lazy" data-original="\{{img}}" alt=""></a>' +
'\{{/brandList}}';
brandTpl = Handlebars.compile(brandHtml);
$('.logo-brand').addClass('logos-' + that.options.showNum).html(brandTpl(data));
lazyLoad($('.logo-brand').find('img.lazy'));
that.$element.html(brandTpl(data));
lazyLoad(that.$element.find('img.lazy'));
that._bindEvent();
}
});
... ...