...
|
...
|
@@ -61,7 +61,11 @@ let indexObj = { |
|
|
|
|
|
if (referrer && referrer !== window.location.href) {
|
|
|
cookie.remove('_cartReferrer');
|
|
|
window.location.href = referrer;
|
|
|
if (referrer === document.referrer || referrer === window.queryString.referrer) {
|
|
|
window.history.go(-1);
|
|
|
} else {
|
|
|
window.location.href = referrer;
|
|
|
}
|
|
|
} else {
|
|
|
window.location.href = '/?go=1';
|
|
|
}
|
...
|
...
|
@@ -89,8 +93,7 @@ let indexObj = { |
|
|
let self = this;
|
|
|
|
|
|
if ((!data || (!data.commonCart && !data.preSellCart)) && no_try !== true) {
|
|
|
self.refreshPage();
|
|
|
return;
|
|
|
return self.refreshPage();
|
|
|
}
|
|
|
let cartType = cookie.get('_cartType') || 'ordinary';
|
|
|
|
...
|
...
|
@@ -120,6 +123,9 @@ let indexObj = { |
|
|
$('.cart-box').html(hbsTemplate(data));
|
|
|
require('./index/cart').init(self);
|
|
|
require('./index/good').init(self);
|
|
|
$('.btn-edit').on('click', () => {
|
|
|
self.navBtnClick();
|
|
|
});
|
|
|
lazyLoad($('img.lazy'));
|
|
|
return Promise.resolve();
|
|
|
}
|
...
|
...
|
|