Authored by 周少峰

Merge branch 'hotfix/firefoxCart' into gray

... ... @@ -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',
... ... @@ -927,10 +927,10 @@ $('.btn_account').on('click', function() {
var productId = [];
$('.pay-wapper input:checked').parents('tr').each(function() {
if ($(this).attr('data-pid')) {
productId.push($(this).attr('data-pid'));
productId.push($(this).attr('data-pid'));
}
});
// 结算点击埋点
window.addPoint('YB_SC_TOBUY_CLICK', {PRD_ID: productId.join(',')});
... ... @@ -957,4 +957,4 @@ $goodsDetail.on('selectstart', function() {
scrollToFirst();
// 购物车默认埋点
window.addPoint('YB_SC');
\ No newline at end of file
window.addPoint('YB_SC');
... ...