...
|
...
|
@@ -113,6 +113,10 @@ function showChooseGifDialog() { |
|
|
}, function() {
|
|
|
window.location.href = cartContentShow().find('.freebie > a').attr('href');
|
|
|
}, function() {
|
|
|
var info = window.cookie('order-info');
|
|
|
if (info) {
|
|
|
window.setCookie('order-info', '');
|
|
|
}
|
|
|
window.location.href = '/cart/index/orderEnsure?cartType=' + cartType;
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -188,6 +192,7 @@ if ($('.freebie').length > 0) { |
|
|
|
|
|
$('.btn-balance').on('touchend', function() {
|
|
|
lowStockCount = 0;
|
|
|
var info = window.cookie('order-info');
|
|
|
if (shouldLowStocks()) {
|
|
|
tip.show('所选商品中有' + lowStockCount + '种库存不足的商品');
|
|
|
return false;
|
...
|
...
|
@@ -199,6 +204,9 @@ $('.btn-balance').on('touchend', function() { |
|
|
}
|
|
|
|
|
|
if (hasChecked()) {
|
|
|
if (info) {
|
|
|
window.setCookie('order-info', '');
|
|
|
}
|
|
|
window.location.href = '/cart/index/orderEnsure?cartType=' + cartType;
|
|
|
} else {
|
|
|
tip.show('请先勾选商品');
|
...
|
...
|
|