...
|
...
|
@@ -92,9 +92,10 @@ function resetColorZeroStock($siblingBlock) { |
|
|
|
|
|
if (!hasChooseSize) {
|
|
|
$siblingBlock.find('ul>li').each(function() {
|
|
|
$(this).removeClass('zero-stock');
|
|
|
if (0 === $(this).data('num')) {
|
|
|
$(this).addClass('zero-stock');
|
|
|
} else {
|
|
|
$(this).removeClass('zero-stock');
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -103,6 +104,8 @@ function resetColorZeroStock($siblingBlock) { |
|
|
for (i = 0; i < numArray.length; i++) {
|
|
|
if ('0' === numArray[i]) {
|
|
|
$siblingBlock.find('.block').eq(i).addClass('zero-stock');
|
|
|
} else {
|
|
|
$siblingBlock.find('.block').eq(i).removeClass('zero-stock');
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|