...
|
...
|
@@ -99,7 +99,7 @@ function resetColorZeroStock($siblingBlock) { |
|
|
});
|
|
|
|
|
|
} else {
|
|
|
numArray = ($curSizeBlock.data('numstr') + '').split('/')
|
|
|
numArray = ($curSizeBlock.data('numstr') + '').split('/');
|
|
|
for (i = 0; i < numArray.length; i++) {
|
|
|
if ('0' === numArray[i]) {
|
|
|
$siblingBlock.find('.block').eq(i).addClass('zero-stock');
|
...
|
...
|
@@ -135,6 +135,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
|
|
$preSiblingBlock,
|
|
|
$curSizeRow,
|
|
|
numArray,
|
|
|
i,
|
|
|
curGoodNum;
|
|
|
|
|
|
var $siblingBlock = $this.closest('.block-list').siblings(':first');
|
...
|
...
|
@@ -155,7 +156,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
|
|
|
|
|
$this.removeClass('zero-stock');
|
|
|
if ($curSizeBlock) {
|
|
|
numArray = ($curSizeBlock.data('numstr') + '').split('/')
|
|
|
numArray = ($curSizeBlock.data('numstr') + '').split('/');
|
|
|
for (i = 0; i < numArray.length; i++) {
|
|
|
if ('0' === numArray[i]) {
|
|
|
$('.color-list .block').eq(i).addClass('zero-stock');
|
...
|
...
|
|