Authored by uedxwg

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -96,9 +96,10 @@ function resetColorZeroStock($siblingBlock) { @@ -96,9 +96,10 @@ function resetColorZeroStock($siblingBlock) {
96 96
97 if (!hasChooseSize) { 97 if (!hasChooseSize) {
98 $siblingBlock.find('ul>li').each(function() { 98 $siblingBlock.find('ul>li').each(function() {
99 - $(this).removeClass('zero-stock');  
100 if (0 === $(this).data('num')) { 99 if (0 === $(this).data('num')) {
101 $(this).addClass('zero-stock'); 100 $(this).addClass('zero-stock');
  101 + } else {
  102 + $(this).removeClass('zero-stock');
102 } 103 }
103 }); 104 });
104 105
@@ -107,6 +108,8 @@ function resetColorZeroStock($siblingBlock) { @@ -107,6 +108,8 @@ function resetColorZeroStock($siblingBlock) {
107 for (i = 0; i < numArray.length; i++) { 108 for (i = 0; i < numArray.length; i++) {
108 if ('0' === numArray[i]) { 109 if ('0' === numArray[i]) {
109 $siblingBlock.find('.block').eq(i).addClass('zero-stock'); 110 $siblingBlock.find('.block').eq(i).addClass('zero-stock');
  111 + } else {
  112 + $siblingBlock.find('.block').eq(i).removeClass('zero-stock');
110 } 113 }
111 } 114 }
112 } 115 }