...
|
...
|
@@ -168,4 +168,30 @@ $('.btn-balance').on('touchend', function() { |
|
|
window.location.href = '/shoppingCart/orderEnsure?cartType=' + 'ordinary';
|
|
|
});
|
|
|
|
|
|
$('.down').on('touchend', function() {
|
|
|
chosePanel.show();
|
|
|
});
|
|
|
$('.cut').on('touchend', function() {
|
|
|
var id = $(this).closest('.shopping-cart-good').data('id');
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/shoppingCart/modify',
|
|
|
data: {
|
|
|
old_product_sku: id,
|
|
|
new_product_sku: id,
|
|
|
buy_number: '0',
|
|
|
selected: 'Y'
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
window.history.go(0);
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络错误');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
...
|
...
|
|