...
|
...
|
@@ -724,15 +724,16 @@ function setSeckillProductData(curProdcutList, products) { |
|
|
function viewSeckillProduct(products, dom) {
|
|
|
let $productList = $('.seckill .product-list');
|
|
|
let num = $productList.data('num');
|
|
|
let $curOutProductList = dom ? dom.parents('.seckill').find('.out-product-list') : $('.out-product-list');
|
|
|
|
|
|
if (products && products.length > num) {
|
|
|
products = products.slice(0, num);
|
|
|
}
|
|
|
|
|
|
if (products.length <= 3) {
|
|
|
$('.out-product-list').addClass('less-than-3');
|
|
|
$curOutProductList.addClass('less-than-3');
|
|
|
} else {
|
|
|
$('.out-product-list').removeClass('less-than-3');
|
|
|
$curOutProductList.removeClass('less-than-3');
|
|
|
}
|
|
|
|
|
|
if (dom) {
|
...
|
...
|
|