Showing
1 changed file
with
3 additions
and
3 deletions
@@ -525,7 +525,7 @@ define('yohood', function(require, exports) { | @@ -525,7 +525,7 @@ define('yohood', function(require, exports) { | ||
525 | var shareOffsetTop = $(".share").offset().top; | 525 | var shareOffsetTop = $(".share").offset().top; |
526 | $(window).scroll(function() { | 526 | $(window).scroll(function() { |
527 | scrollTop = $(window).scrollTop(); | 527 | scrollTop = $(window).scrollTop(); |
528 | - maxH = $('.limited-goods').offset().top; | 528 | + maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); |
529 | if (shareOffsetTop - scrollTop <= 0) { | 529 | if (shareOffsetTop - scrollTop <= 0) { |
530 | $(".share").css({ | 530 | $(".share").css({ |
531 | "position": "fixed", | 531 | "position": "fixed", |
@@ -672,7 +672,7 @@ define('yohood', function(require, exports) { | @@ -672,7 +672,7 @@ define('yohood', function(require, exports) { | ||
672 | if ($('.bd').outerHeight() > $(window).height()) { | 672 | if ($('.bd').outerHeight() > $(window).height()) { |
673 | $(window).on('scroll', function() { | 673 | $(window).on('scroll', function() { |
674 | relatedH = relatedPost.outerHeight(); | 674 | relatedH = relatedPost.outerHeight(); |
675 | - maxH = $('.limited-goods').offset().top; | 675 | + maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); |
676 | if ($(this).scrollTop() >= relatedTop) { | 676 | if ($(this).scrollTop() >= relatedTop) { |
677 | relatedPost.addClass('fix'); | 677 | relatedPost.addClass('fix'); |
678 | if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) { | 678 | if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) { |
@@ -709,7 +709,7 @@ define('yohood', function(require, exports) { | @@ -709,7 +709,7 @@ define('yohood', function(require, exports) { | ||
709 | var oTab = $('.site-activity-tab'), | 709 | var oTab = $('.site-activity-tab'), |
710 | tabTop = oTab.offset().top, | 710 | tabTop = oTab.offset().top, |
711 | tabH = oTab.outerHeight(), | 711 | tabH = oTab.outerHeight(), |
712 | - maxH = $('.limited-goods').offset().top; | 712 | + maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); |
713 | if ($('.bd').outerHeight() > $(window).height()) { | 713 | if ($('.bd').outerHeight() > $(window).height()) { |
714 | $(window).on('scroll', function() { | 714 | $(window).on('scroll', function() { |
715 | tabH = oTab.outerHeight(); | 715 | tabH = oTab.outerHeight(); |
-
Please register or login to post a comment