...
|
...
|
@@ -12,7 +12,6 @@ var $ = require('jquery'), |
|
|
var dialog = require('../me/dialog'),
|
|
|
tip = require('../plugin/tip');
|
|
|
|
|
|
|
|
|
var $names;
|
|
|
|
|
|
//var $curDelPanel;
|
...
|
...
|
@@ -55,25 +54,26 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
} else {
|
|
|
$this.removeClass('icon-checkbox').addClass('icon-cb-checked');
|
|
|
}
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/cart/index/getCartData',
|
|
|
data: {
|
|
|
id: id
|
|
|
skuList: JSON.stringfy(id)
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data) {
|
|
|
$('#good-totalprice').html('¥' + data.commonCart.price);
|
|
|
$('#good-activityPrice').html('¥' + data.commonCart.activityPrice);
|
|
|
$('#good-total').html(data.commonCart.count + '件总计:¥' + data.commonCart.sumPrice);
|
|
|
$('#good-total').html('总计:¥' + data.commonCart.sumPrice +' (' + data.commonCart.count + '件)');
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络错误');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
} else if(data.code === 200) {
|
|
|
tip.show('网络错误');
|
|
|
}
|
|
|
}).fail(function() {
|
|
|
tip.show('网络错误');
|
|
|
});
|
...
|
...
|
|