Authored by zhangxiaoru

购物车失效商品

... ... @@ -242,3 +242,7 @@ $cartNav.on('touchstart', 'li', function(e) {
//提前触发lazyload
$(window).scrollTop(1).scrollTop(0);
if ($('.invalid-goods').find('.shopping-cart-good').length === 0) {
$('#failure-goods').removeClass('invalid-goods');
}
\ No newline at end of file
... ...
... ... @@ -4,21 +4,19 @@
{{/ goods}}
</div>
{{#if notValidGoods}}
<div class="invalid-goods">
<div class="invalid-goods" id="failure-goods">
{{#if notValidGoods}}
{{# notValidGoods}}
{{> cart/good}}
{{> cart/good}}
{{/ notValidGoods}}
</div>
{{/if}}
{{/if}}
{{#if offShelveGoods}}
<div class="invalid-goods off-shell-goods">
{{#if offShelveGoods}}
{{# offShelveGoods}}
{{> cart/good}}
{{> cart/good}}
{{/ offShelveGoods}}
</div>
{{/if}}
{{/if}}
</div>
{{#if freebieOrAdvanceBuy}}
<ul class="freebie-and-advance-buy">
... ...