...
|
...
|
@@ -79,22 +79,18 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
});
|
|
|
}).on('touchstart', '.icon-edit', function() {
|
|
|
|
|
|
//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');
|
|
|
//}
|
|
|
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');
|
|
|
}
|
|
|
|
|
|
|
|
|
}).on('touchstart', '.icon-del', function(e) {
|
...
|
...
|
|