...
|
...
|
@@ -493,6 +493,7 @@ define('yohood', function(require, exports) { |
|
|
relatedTop = relatedPost.offset().top;
|
|
|
relatedH = relatedPost.outerHeight();
|
|
|
maxH = $('.limited-goods').offset().top;
|
|
|
if ($('.bd') > $(window).height()) {
|
|
|
$(window).on('scroll', function() {
|
|
|
if ($(this).scrollTop() >= relatedTop) {
|
|
|
relatedPost.addClass('fix');
|
...
|
...
|
@@ -512,6 +513,7 @@ define('yohood', function(require, exports) { |
|
|
relatedPost.removeClass('fix').removeAttr('style');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//分享按钮位置
|
|
|
var shareOffsetTop = $(".share").offset().top;
|
...
|
...
|
@@ -634,6 +636,7 @@ define('yohood', function(require, exports) { |
|
|
tabTop = oTab.offset().top,
|
|
|
tabH = oTab.outerHeight(),
|
|
|
maxH = $('.limited-goods').offset().top;
|
|
|
if ($('.bd') > $(window).height()) {
|
|
|
$(window).on('scroll', function() {
|
|
|
if ($(this).scrollTop() >= tabTop) {
|
|
|
oTab.addClass('fix');
|
...
|
...
|
@@ -653,6 +656,7 @@ define('yohood', function(require, exports) { |
|
|
oTab.removeClass('fix').removeAttr('style');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
//日期自动定位
|
|
|
$(".site-activity-time").each(function() {
|
|
|
if (timestamp >= $(this).attr("start_time") && timestamp <= $(this).attr("end_time")) {
|
...
|
...
|
|