roll back to the origin
Showing
1 changed file
with
26 additions
and
0 deletions
@@ -168,4 +168,30 @@ $('.btn-balance').on('touchend', function() { | @@ -168,4 +168,30 @@ $('.btn-balance').on('touchend', function() { | ||
168 | window.location.href = '/shoppingCart/orderEnsure?cartType=' + 'ordinary'; | 168 | window.location.href = '/shoppingCart/orderEnsure?cartType=' + 'ordinary'; |
169 | }); | 169 | }); |
170 | 170 | ||
171 | +$('.down').on('touchend', function() { | ||
172 | + chosePanel.show(); | ||
173 | +}); | ||
174 | +$('.cut').on('touchend', function() { | ||
175 | + var id = $(this).closest('.shopping-cart-good').data('id'); | ||
176 | + | ||
177 | + $.ajax({ | ||
178 | + type: 'GET', | ||
179 | + url: '/shoppingCart/modify', | ||
180 | + data: { | ||
181 | + old_product_sku: id, | ||
182 | + new_product_sku: id, | ||
183 | + buy_number: '0', | ||
184 | + selected: 'Y' | ||
185 | + }, | ||
186 | + success: function(data) { | ||
187 | + if (data.code === 200) { | ||
188 | + window.history.go(0); | ||
189 | + } | ||
190 | + }, | ||
191 | + error: function() { | ||
192 | + tip.show('网络错误'); | ||
193 | + } | ||
194 | + }); | ||
195 | + | ||
196 | +}); | ||
171 | 197 |
-
Please register or login to post a comment