Showing
1 changed file
with
3 additions
and
3 deletions
@@ -142,9 +142,9 @@ function changeSizeChosed(newSizeIndex) { | @@ -142,9 +142,9 @@ function changeSizeChosed(newSizeIndex) { | ||
142 | $curSizeBlock.removeClass('chosed'); | 142 | $curSizeBlock.removeClass('chosed'); |
143 | sizes = $sizeRowList.eq(newSizeIndex).children(); | 143 | sizes = $sizeRowList.eq(newSizeIndex).children(); |
144 | for (i = 0; i < sizes.length; i++) { | 144 | for (i = 0; i < sizes.length; i++) { |
145 | - if ($(sizes[i]).data('name') === $curSizeBlock.data('name')) { | 145 | + if ($(sizes[i]).data('id') === $curSizeBlock.data('id')) { |
146 | $curSizeBlock = $(sizes[i]); | 146 | $curSizeBlock = $(sizes[i]); |
147 | - queryString = '#' + $curSizeBlock.data('name'); | 147 | + queryString = '#' + $curSizeBlock.data('id'); |
148 | curColorIndex = $(queryString).data('index'); | 148 | curColorIndex = $(queryString).data('index'); |
149 | $curSizeBlock.addClass('chosed'); | 149 | $curSizeBlock.addClass('chosed'); |
150 | return $curSizeBlock.data('num'); | 150 | return $curSizeBlock.data('num'); |
@@ -282,7 +282,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | @@ -282,7 +282,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | ||
282 | } else { | 282 | } else { |
283 | hasChooseSize = true; | 283 | hasChooseSize = true; |
284 | 284 | ||
285 | - index = $('#' + $this.data('name')).data('index') - 1; | 285 | + index = $('#' + $this.data('id')).data('index') - 1; |
286 | 286 | ||
287 | // 颜色当前行隐藏 | 287 | // 颜色当前行隐藏 |
288 | $colorRowList.eq(curColorIndex).addClass('hide'); | 288 | $colorRowList.eq(curColorIndex).addClass('hide'); |
-
Please register or login to post a comment