Authored by 梁志锋

颜色尺码选择优化

@@ -147,7 +147,7 @@ function changeSizeChosed(oldSizeIndex) { @@ -147,7 +147,7 @@ function changeSizeChosed(oldSizeIndex) {
147 function changeColorChosed(oldColorIndex) { 147 function changeColorChosed(oldColorIndex) {
148 if (curSizeIndex && $curColorBlock && $curColorBlock.length > 0) { 148 if (curSizeIndex && $curColorBlock && $curColorBlock.length > 0) {
149 $curColorBlock.removeClass('chosed'); 149 $curColorBlock.removeClass('chosed');
150 - $curColorBlock = $($colorRowList.eq(oldColorIndex).children().get(curSizeIndex - 1)) 150 + $curColorBlock = $($colorRowList.eq(oldColorIndex).children().get(curSizeIndex - 1));
151 $curColorBlock.addClass('chosed'); 151 $curColorBlock.addClass('chosed');
152 return $curColorBlock.data('num'); 152 return $curColorBlock.data('num');
153 } 153 }
@@ -223,7 +223,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() { @@ -223,7 +223,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
223 updateConformButtonClassAndText(); 223 updateConformButtonClassAndText();
224 }).on('touchstart', '.size-list .block', function() { 224 }).on('touchstart', '.size-list .block', function() {
225 var $this = $(this), 225 var $this = $(this),
226 - index= $this.index(), 226 + index = $this.index(),
227 curGoodNum; 227 curGoodNum;
228 228
229 // 当前尺码已经是选中状态,再点击时 229 // 当前尺码已经是选中状态,再点击时