Showing
1 changed file
with
4 additions
and
5 deletions
@@ -161,15 +161,14 @@ $('.down').on('touchend', function() { | @@ -161,15 +161,14 @@ $('.down').on('touchend', function() { | ||
161 | chosePanel.show(); | 161 | chosePanel.show(); |
162 | }); | 162 | }); |
163 | $('.cut').on('touchend', function() { | 163 | $('.cut').on('touchend', function() { |
164 | - var $this = $(this), | ||
165 | - id = $(this).closest('.shopping-cart-good').data('id'); | ||
166 | - console.log(id); | 164 | + var id = $(this).closest('.shopping-cart-good').data('id'); |
165 | + | ||
167 | $.ajax({ | 166 | $.ajax({ |
168 | type: 'GET', | 167 | type: 'GET', |
169 | url: '/shoppingCart/modify', | 168 | url: '/shoppingCart/modify', |
170 | data: { | 169 | data: { |
171 | - old_product_sku: id , | ||
172 | - new_product_sku: id , | 170 | + old_product_sku: id, |
171 | + new_product_sku: id, | ||
173 | buy_number: '0', | 172 | buy_number: '0', |
174 | selected: 'Y' | 173 | selected: 'Y' |
175 | }, | 174 | }, |
-
Please register or login to post a comment