Showing
1 changed file
with
3 additions
and
2 deletions
@@ -99,7 +99,7 @@ function resetColorZeroStock($siblingBlock) { | @@ -99,7 +99,7 @@ function resetColorZeroStock($siblingBlock) { | ||
99 | }); | 99 | }); |
100 | 100 | ||
101 | } else { | 101 | } else { |
102 | - numArray = ($curSizeBlock.data('numstr') + '').split('/') | 102 | + numArray = ($curSizeBlock.data('numstr') + '').split('/'); |
103 | for (i = 0; i < numArray.length; i++) { | 103 | for (i = 0; i < numArray.length; i++) { |
104 | if ('0' === numArray[i]) { | 104 | if ('0' === numArray[i]) { |
105 | $siblingBlock.find('.block').eq(i).addClass('zero-stock'); | 105 | $siblingBlock.find('.block').eq(i).addClass('zero-stock'); |
@@ -135,6 +135,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | @@ -135,6 +135,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | ||
135 | $preSiblingBlock, | 135 | $preSiblingBlock, |
136 | $curSizeRow, | 136 | $curSizeRow, |
137 | numArray, | 137 | numArray, |
138 | + i, | ||
138 | curGoodNum; | 139 | curGoodNum; |
139 | 140 | ||
140 | var $siblingBlock = $this.closest('.block-list').siblings(':first'); | 141 | var $siblingBlock = $this.closest('.block-list').siblings(':first'); |
@@ -155,7 +156,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | @@ -155,7 +156,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | ||
155 | 156 | ||
156 | $this.removeClass('zero-stock'); | 157 | $this.removeClass('zero-stock'); |
157 | if ($curSizeBlock) { | 158 | if ($curSizeBlock) { |
158 | - numArray = ($curSizeBlock.data('numstr') + '').split('/') | 159 | + numArray = ($curSizeBlock.data('numstr') + '').split('/'); |
159 | for (i = 0; i < numArray.length; i++) { | 160 | for (i = 0; i < numArray.length; i++) { |
160 | if ('0' === numArray[i]) { | 161 | if ('0' === numArray[i]) { |
161 | $('.color-list .block').eq(i).addClass('zero-stock'); | 162 | $('.color-list .block').eq(i).addClass('zero-stock'); |
-
Please register or login to post a comment