...
|
...
|
@@ -55,9 +55,36 @@ $('.cart-goods').delegate('.checkbox', 'touchstart', function() { |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}).delegate('.icon-del', 'touchstart', function() {
|
|
|
}).delegate('.icon-del', 'touchstart', function(e) {
|
|
|
e.stopPropagation();
|
|
|
|
|
|
$(this).closest('.shopping-cart-good').children('.opt-panel').removeClass('hide');
|
|
|
|
|
|
$(document).bind('touchstart', docTouchEvt);
|
|
|
}).delegate('.opt-panel', 'touchstart', function() {
|
|
|
var $this = $(this),
|
|
|
id = $this.closest('.shopping-cart-good').data('id');
|
|
|
|
|
|
if ($this.closest('.put-in-favorite')) {
|
|
|
|
|
|
//移入收藏夹
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/shoppingCart/col',
|
|
|
data: {
|
|
|
id: id
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
|
|
|
//删除
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/shoppingCart/del',
|
|
|
data: {
|
|
|
id: id
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|