...
|
...
|
@@ -77,6 +77,7 @@ $( |
|
|
success: function(data) {
|
|
|
// 秒杀是否结束
|
|
|
if (data.status !== 1 && data.status !== 2) {
|
|
|
$('.sold-out').hide();
|
|
|
$('.cart-bar a:first').append('<a href="javascript:;" class="sold-out">已售罄</a>');
|
|
|
$('.addto-cart').hide();
|
|
|
$('.cart-bar').show();
|
...
|
...
|
@@ -101,6 +102,7 @@ $( |
|
|
'<span class="seckill-time-c">月日</span>' +
|
|
|
'</div>'
|
|
|
);
|
|
|
$('.sold-out').hide();
|
|
|
$('.cart-bar a:first').after('<a href="javascript:;" class="sold-out">即将开抢</a>');
|
|
|
$('.addto-cart').hide();
|
|
|
$('.cart-bar').show();
|
...
|
...
|
@@ -177,6 +179,7 @@ $( |
|
|
seckillNum = seckillNum + data.secKillSku[i].storageNum;
|
|
|
}
|
|
|
if (seckillNum === 0) {
|
|
|
$('.sold-out').hide();
|
|
|
$('.cart-bar a:first').append('<a href="javascript:;" class="sold-out">已售罄</a>');
|
|
|
$('.addto-cart').hide();
|
|
|
}
|
...
|
...
|
|