...
|
...
|
@@ -124,7 +124,7 @@ $(window).on('seckill', function(event, detailData) { |
|
|
'</div>'
|
|
|
);
|
|
|
$('.sold-out').hide();
|
|
|
$('.cart-bar a:first').after('<a href="javascript:;" class="sold-out">即将开抢</a>');
|
|
|
$('.cart-bar').append('<a href="javascript:;" class="sold-out">即将开抢</a>');
|
|
|
$('.addto-cart').hide();
|
|
|
$('.cart-bar').show();
|
|
|
$('.current-price').show();
|
...
|
...
|
@@ -187,7 +187,7 @@ $(window).on('seckill', function(event, detailData) { |
|
|
}
|
|
|
if (seckillNum === 0) {
|
|
|
$('.sold-out').hide();
|
|
|
$('.cart-bar a:first').append('<a href="javascript:;" class="sold-out">已售罄</a>');
|
|
|
$('.cart-bar').append('<a href="javascript:;" class="sold-out">已售罄</a>');
|
|
|
$('.addto-cart').hide();
|
|
|
}
|
|
|
$('.current-price').show();
|
...
|
...
|
|