Authored by jinhu.tung

invalid product can not interaction

@@ -131,7 +131,7 @@ @@ -131,7 +131,7 @@
131 </div> 131 </div>
132 </li> 132 </li>
133 <li class="price-num"> 133 <li class="price-num">
134 - <span class="price sale-price">¥ {{round salesPrice 2}}</span> 134 + <span class="price sale-price">¥ {{round sales_price 2}}</span>
135 {{> cart/stepper }} 135 {{> cart/stepper }}
136 </li> 136 </li>
137 <li class="total-price-action"> 137 <li class="total-price-action">
@@ -77,7 +77,7 @@ var Stepper = { @@ -77,7 +77,7 @@ var Stepper = {
77 currNum = $input.val(); 77 currNum = $input.val();
78 plus = $input.parent().next(); 78 plus = $input.parent().next();
79 79
80 - if (!$target.hasClass('disable')) { 80 + if (!$target.hasClass('disable') && !$target.parents('.cart-pro-list').hasClass('invalid-pros')) {
81 sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku; 81 sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku;
82 goodType = $target.parent().attr('data-producttype'); 82 goodType = $target.parent().attr('data-producttype');
83 _this.decrease(goodType, sku, currNum, function(num, changed) { 83 _this.decrease(goodType, sku, currNum, function(num, changed) {
@@ -103,7 +103,7 @@ var Stepper = { @@ -103,7 +103,7 @@ var Stepper = {
103 currNum = $input.val(); 103 currNum = $input.val();
104 minus = $input.parent().prev(); 104 minus = $input.parent().prev();
105 105
106 - if (!$target.hasClass('disable')) { 106 + if (!$target.hasClass('disable') && !$target.parents('.cart-pro-list').hasClass('invalid-pros')) {
107 sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku; 107 sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku;
108 goodType = $target.parent().attr('data-producttype'); 108 goodType = $target.parent().attr('data-producttype');
109 _this.increase(goodType, sku, currNum, function(num, changed, overflow) { 109 _this.increase(goodType, sku, currNum, function(num, changed, overflow) {
@@ -223,6 +223,10 @@ $hoverColor: #379ed6; @@ -223,6 +223,10 @@ $hoverColor: #379ed6;
223 border-top: 1px solid #eee; 223 border-top: 1px solid #eee;
224 color: #999; 224 color: #999;
225 225
  226 + input {
  227 + color: #999 !important;
  228 + }
  229 +
226 a { 230 a {
227 color: #999 !important; 231 color: #999 !important;
228 } 232 }