Authored by 梁志锋

gulp ge文件提交

@@ -5544,8 +5544,20 @@ function changeSizeChosed(newSizeIndex) { @@ -5544,8 +5544,20 @@ function changeSizeChosed(newSizeIndex) {
5544 return $curSizeBlock.data('num'); 5544 return $curSizeBlock.data('num');
5545 } 5545 }
5546 } 5546 }
  5547 +
  5548 + //特殊处理: 老的选中尺码在新选中的颜色对应尺码中不存在,需要下述1,2,3
  5549 + // 1.重置尺码选择的标志变量.
5547 $curSizeBlock = null; 5550 $curSizeBlock = null;
5548 - return 0; 5551 + hasChooseSize = false;
  5552 +
  5553 + // 2.当前颜色行隐藏
  5554 + $colorRowList.eq(curColorIndex).addClass('hide');
  5555 +
  5556 + // 3.目标颜色行第一行显示
  5557 + $colorRowList.eq(0).removeClass('hide');
  5558 + curColorIndex = 0;
  5559 +
  5560 + return -1;
5549 } 5561 }
5550 return 0; 5562 return 0;
5551 } 5563 }
@@ -5623,7 +5635,15 @@ $yohoPage.on('touchstart', '.color-list .block', function() { @@ -5623,7 +5635,15 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
5623 5635
5624 // 颜色块切换勾选样式 5636 // 颜色块切换勾选样式
5625 $this.siblings('.chosed').removeClass('chosed'); 5637 $this.siblings('.chosed').removeClass('chosed');
5626 - $this.toggleClass('chosed'); 5638 +
  5639 + // 特殊处理
  5640 + if (-1 === curGoodNum) {
  5641 + $curColorBlock = $($colorRowList.eq(0).children().get(index));
  5642 + $curColorBlock.addClass('chosed');
  5643 + } else {
  5644 + $this.toggleClass('chosed');
  5645 + }
  5646 +
5627 $('#good-num').val(1); 5647 $('#good-num').val(1);
5628 5648
5629 // 设置按钮的样式和文字 5649 // 设置按钮的样式和文字
@@ -8826,7 +8846,7 @@ define("js/me/currency-new", ["jquery","hammer","lazyload"], function(require, e @@ -8826,7 +8846,7 @@ define("js/me/currency-new", ["jquery","hammer","lazyload"], function(require, e
8826 */ 8846 */
8827 8847
8828 function getGender() { 8848 function getGender() {
8829 - return window.cookie('_Channel'); 8849 + return window.cookie('_Channel') || 'boys';
8830 } 8850 }
8831 8851
8832 require("js/home/maybe-like")(getGender()); 8852 require("js/home/maybe-like")(getGender());
This diff could not be displayed because it is too large.