...
|
...
|
@@ -19,11 +19,21 @@ require('./desc'); |
|
|
require('./comments-consults');
|
|
|
|
|
|
//add extra marign-bottom for footer to show the yoho copyright
|
|
|
|
|
|
function showFooter() {
|
|
|
window.reMarginFooter('.cart-bar');
|
|
|
var $cartBar = $('.cart-bar');
|
|
|
|
|
|
var timer = setInterval(function() {
|
|
|
if ($cartBar) {
|
|
|
window.reMarginFooter('.cart-bar');
|
|
|
clearInterval(timer);
|
|
|
} else {
|
|
|
$cartBar = $('.cart-bar');
|
|
|
}
|
|
|
}, 200);
|
|
|
}
|
|
|
|
|
|
showFooter();
|
|
|
|
|
|
lazyLoad($('img.lazy'));
|
|
|
|
|
|
//顶部swiper
|
...
|
...
|
@@ -57,6 +67,6 @@ if (goodsDiscountHammer) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
require('./like');
|
|
|
|
|
|
$(document).ready(showFooter); |
...
|
...
|
|