...
|
...
|
@@ -76,7 +76,7 @@ function choiceOut(data) { |
|
|
}
|
|
|
}).then(function(d) {
|
|
|
if (d.code === 200) {
|
|
|
window.history.go(0);
|
|
|
window.location.reload();
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -433,7 +433,7 @@ function cartDel(data, delUrl, cookieList) { |
|
|
path: '/'
|
|
|
});
|
|
|
}
|
|
|
window.history.go(0);
|
|
|
window.location.reload();
|
|
|
} else if (d.code === 300) {
|
|
|
$('.loading').hide();
|
|
|
new Alert(d.message).show();
|
...
|
...
|
@@ -631,7 +631,7 @@ function countAJAX(data) { |
|
|
data: data
|
|
|
}).then(function(d) {
|
|
|
if (d.code === 200) {
|
|
|
window.history.go(0);
|
|
|
window.location.reload();
|
|
|
} else {
|
|
|
new Alert(d.message === '' ? '加入购物车失败哦~~' : d.message).show();
|
|
|
}
|
...
|
...
|
@@ -683,7 +683,7 @@ function addcart(data, cookieList) { |
|
|
data: data
|
|
|
}).then(function(d) {
|
|
|
if (d.code === 200) {
|
|
|
window.history.go(0);
|
|
|
window.location.reload();
|
|
|
if (cookieList) {
|
|
|
window.setCookie('cart-del-list', JSON.stringify(cookieList), {
|
|
|
domain: '.yohobuy.com',
|
...
|
...
|
|