Authored by whb

修改bug

... ... @@ -388,6 +388,9 @@ define('yohood', function(require, exports) {
},
success: function(data) {
$("#brand_detail").html(data);
if($(window).height() < 580 ) { //小屏幕,去掉关闭按钮
$("#brand_detail").find('.brand-close-btn').remove();
}
$('.overlay').show();
}
});
... ... @@ -521,6 +524,7 @@ define('yohood', function(require, exports) {
$(this).addClass('current').siblings().removeClass('current');
$('.side-related-list').hide().eq(nowIndex).show();
});
if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) {
//右侧相关文章定位
relatedPost = $('.side-related-post');
... ... @@ -548,17 +552,9 @@ define('yohood', function(require, exports) {
} else {
relatedPost.removeClass('fix').removeAttr('style');
}
if ($(this).scrollTop() <= maxH - relatedH) {
relatedPost.css({
'position': 'fixed',
'top': 0
});
}
} else {
relatedPost.removeClass('fix').removeAttr('style');
}
}
});
//分享按钮位置
var shareOffsetTop = $(".share").offset().top;
... ...