Showing
1 changed file
with
2 additions
and
3 deletions
@@ -165,10 +165,9 @@ $yohoPage.on('touchstart', '.color-list .block', function(e) { | @@ -165,10 +165,9 @@ $yohoPage.on('touchstart', '.color-list .block', function(e) { | ||
165 | // 之前选中的尺码去掉勾选样式 | 165 | // 之前选中的尺码去掉勾选样式 |
166 | if ($preSiblingBlock.length > 0) { | 166 | if ($preSiblingBlock.length > 0) { |
167 | $preSiblingBlock.removeClass('chosed'); | 167 | $preSiblingBlock.removeClass('chosed'); |
168 | + curSizeBlock = $curSizeRow.children().get(scindex); | ||
168 | } | 169 | } |
169 | - | ||
170 | - curSizeBlock = $curSizeRow.children().get(scindex); | ||
171 | - | 170 | + |
172 | // 当前选中颜色对应的尺码行,其对应的尺码加上勾选样式 (前提是要判断下这个尺码是否存在) | 171 | // 当前选中颜色对应的尺码行,其对应的尺码加上勾选样式 (前提是要判断下这个尺码是否存在) |
173 | if (curSizeBlock) { | 172 | if (curSizeBlock) { |
174 | curGoodNum = $(curSizeBlock).data('num'); | 173 | curGoodNum = $(curSizeBlock).data('num'); |
-
Please register or login to post a comment