Authored by 刘传洋

m

... ... @@ -287,6 +287,7 @@ Cart = {
modNum: function() {
var $this = $(this);
var $item = $this.closest('li[data-role=pitem]');
var $btn = $item.find('.cart-item-check');
// var storagenum = $item.data('storagenum') ? $item.data('storagenum') * 1 : 0;
var countJSON = {};
... ... @@ -305,6 +306,10 @@ Cart = {
capi.cartItemNumChg($.extend(countJSON, {
sku: $item.data('id')
}));
if (!$btn.hasClass('cart-item-checked')) {
$btn.click();
}
},
reAdd2Cart: function() {
... ...
... ... @@ -194,7 +194,7 @@ cartItemNumChg = (function() {
}
countBusy = true;
$.ajax({
return $.ajax({
type: 'POST',
dataType: 'json',
url: '/cart/cart/modifyNum',
... ...
... ... @@ -145,7 +145,7 @@
.oldprice {
display: block;
color: #b0b0b0;
font-size: 12px;
font-size: 13px;
font-weight: normal;
height: 25px;
line-height: 25px;
... ...