Authored by jinhu.tung

invalid product can not interaction

... ... @@ -131,7 +131,7 @@
</div>
</li>
<li class="price-num">
<span class="price sale-price">¥ {{round salesPrice 2}}</span>
<span class="price sale-price">¥ {{round sales_price 2}}</span>
{{> cart/stepper }}
</li>
<li class="total-price-action">
... ...
... ... @@ -77,7 +77,7 @@ var Stepper = {
currNum = $input.val();
plus = $input.parent().next();
if (!$target.hasClass('disable')) {
if (!$target.hasClass('disable') && !$target.parents('.cart-pro-list').hasClass('invalid-pros')) {
sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku;
goodType = $target.parent().attr('data-producttype');
_this.decrease(goodType, sku, currNum, function(num, changed) {
... ... @@ -103,7 +103,7 @@ var Stepper = {
currNum = $input.val();
minus = $input.parent().prev();
if (!$target.hasClass('disable')) {
if (!$target.hasClass('disable') && !$target.parents('.cart-pro-list').hasClass('invalid-pros')) {
sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku;
goodType = $target.parent().attr('data-producttype');
_this.increase(goodType, sku, currNum, function(num, changed, overflow) {
... ...
... ... @@ -223,6 +223,10 @@ $hoverColor: #379ed6;
border-top: 1px solid #eee;
color: #999;
input {
color: #999 !important;
}
a {
color: #999 !important;
}
... ...