Showing
1 changed file
with
4 additions
and
0 deletions
@@ -493,6 +493,7 @@ define('yohood', function(require, exports) { | @@ -493,6 +493,7 @@ define('yohood', function(require, exports) { | ||
493 | relatedTop = relatedPost.offset().top; | 493 | relatedTop = relatedPost.offset().top; |
494 | relatedH = relatedPost.outerHeight(); | 494 | relatedH = relatedPost.outerHeight(); |
495 | maxH = $('.limited-goods').offset().top; | 495 | maxH = $('.limited-goods').offset().top; |
496 | + if ($('.bd') > $(window).height()) { | ||
496 | $(window).on('scroll', function() { | 497 | $(window).on('scroll', function() { |
497 | if ($(this).scrollTop() >= relatedTop) { | 498 | if ($(this).scrollTop() >= relatedTop) { |
498 | relatedPost.addClass('fix'); | 499 | relatedPost.addClass('fix'); |
@@ -512,6 +513,7 @@ define('yohood', function(require, exports) { | @@ -512,6 +513,7 @@ define('yohood', function(require, exports) { | ||
512 | relatedPost.removeClass('fix').removeAttr('style'); | 513 | relatedPost.removeClass('fix').removeAttr('style'); |
513 | } | 514 | } |
514 | }); | 515 | }); |
516 | + } | ||
515 | 517 | ||
516 | //分享按钮位置 | 518 | //分享按钮位置 |
517 | var shareOffsetTop = $(".share").offset().top; | 519 | var shareOffsetTop = $(".share").offset().top; |
@@ -634,6 +636,7 @@ define('yohood', function(require, exports) { | @@ -634,6 +636,7 @@ define('yohood', function(require, exports) { | ||
634 | tabTop = oTab.offset().top, | 636 | tabTop = oTab.offset().top, |
635 | tabH = oTab.outerHeight(), | 637 | tabH = oTab.outerHeight(), |
636 | maxH = $('.limited-goods').offset().top; | 638 | maxH = $('.limited-goods').offset().top; |
639 | + if ($('.bd') > $(window).height()) { | ||
637 | $(window).on('scroll', function() { | 640 | $(window).on('scroll', function() { |
638 | if ($(this).scrollTop() >= tabTop) { | 641 | if ($(this).scrollTop() >= tabTop) { |
639 | oTab.addClass('fix'); | 642 | oTab.addClass('fix'); |
@@ -653,6 +656,7 @@ define('yohood', function(require, exports) { | @@ -653,6 +656,7 @@ define('yohood', function(require, exports) { | ||
653 | oTab.removeClass('fix').removeAttr('style'); | 656 | oTab.removeClass('fix').removeAttr('style'); |
654 | } | 657 | } |
655 | }); | 658 | }); |
659 | + } | ||
656 | //日期自动定位 | 660 | //日期自动定位 |
657 | $(".site-activity-time").each(function() { | 661 | $(".site-activity-time").each(function() { |
658 | if (timestamp >= $(this).attr("start_time") && timestamp <= $(this).attr("end_time")) { | 662 | if (timestamp >= $(this).attr("start_time") && timestamp <= $(this).attr("end_time")) { |
-
Please register or login to post a comment