...
|
...
|
@@ -44,7 +44,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/shoppingCart/select',
|
|
|
url: '/cart/index/select',
|
|
|
data: {
|
|
|
id: id
|
|
|
}
|
...
|
...
|
@@ -58,7 +58,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
}
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/shoppingCart/getCartData',
|
|
|
url: '/cart/index/getCartData',
|
|
|
data: {
|
|
|
id: id
|
|
|
},
|
...
|
...
|
@@ -79,18 +79,22 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
});
|
|
|
}).on('touchstart', '.icon-edit', function() {
|
|
|
|
|
|
var $this = $(this),
|
|
|
$cartgood = $this.closest('.shopping-cart-good'),
|
|
|
$viewGood = $cartgood.find('.deps'),
|
|
|
$editGoot = $cartgood.find('.calculate-num');
|
|
|
|
|
|
if ($viewGood.hasClass('show')) {
|
|
|
$viewGood.removeClass('show').addClass('hide');
|
|
|
$editGoot.removeClass('hide').addClass('show');
|
|
|
} else {
|
|
|
$viewGood.removeClass('hide').addClass('show');
|
|
|
$editGoot.removeClass('show').addClass('hide');
|
|
|
}
|
|
|
//var $this = $(this);
|
|
|
//
|
|
|
//var $cartgood = $this.closest('.shopping-cart-good');
|
|
|
//
|
|
|
////var id = $this.closest('.shopping-cart-good').data('id');
|
|
|
//
|
|
|
//var $viewGood = $cartgood.find('.deps');
|
|
|
// $editGoot = $cartgood.find('.calculate-num');
|
|
|
//
|
|
|
//if ($viewGood.hasClass('show')) {
|
|
|
// $viewGood.removeClass('show').addClass('hide');
|
|
|
// $editGoot.removeClass('hide').addClass('show');
|
|
|
//} else {
|
|
|
// $viewGood.removeClass('hide').addClass('show');
|
|
|
// $editGoot.removeClass('show').addClass('hide');
|
|
|
//}
|
|
|
|
|
|
|
|
|
}).on('touchstart', '.icon-del', function(e) {
|
...
|
...
|
@@ -116,7 +120,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
|
|
|
$.ajax({
|
|
|
method: 'post',
|
|
|
url: '/shoppingCart/del',
|
|
|
url: '/cart/index/del',
|
|
|
data: {
|
|
|
id: id
|
|
|
}
|
...
|
...
|
@@ -163,11 +167,6 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
// });
|
|
|
//})
|
|
|
|
|
|
|
|
|
$('.btn-balance').on('touchend', function() {
|
|
|
window.location.href = '/shoppingCart/orderEnsure?cartType=' + 'ordinary';
|
|
|
});
|
|
|
|
|
|
$('.down').on('touchend', function() {
|
|
|
chosePanel.show();
|
|
|
});
|
...
|
...
|
@@ -176,7 +175,7 @@ $('.cut').on('touchend', function() { |
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/shoppingCart/modify',
|
|
|
url: '/cart/index/modify',
|
|
|
data: {
|
|
|
old_product_sku: id,
|
|
|
new_product_sku: id,
|
...
|
...
|
|