Authored by yyq

list goods img js

... ... @@ -78,7 +78,7 @@
</p>
<div class="hideList hide">
{{#goods_list}}
<li data-src="{{image images_url 280 374}}" data-url="{{../url}}"></li>
<li data-src="{{image images_url 280 374}}" data-url="{{../url}}" data-status="{{status}}"></li>
{{/goods_list}}
</div>
</div>
... ...
... ... @@ -104,7 +104,10 @@ exports.init = function(num) {
event.target.find('.hideList > li').each(function() {
pic = $(this).data();
pic.coverImg = pic.src;
pics.push(pic);
if (+pic.status) { // 过滤下架商品
pics.push(pic);
}
});
colorList = createColorList(pics, _from);
... ...