...
|
...
|
@@ -525,7 +525,7 @@ define('yohood', function(require, exports) { |
|
|
var shareOffsetTop = $(".share").offset().top;
|
|
|
$(window).scroll(function() {
|
|
|
scrollTop = $(window).scrollTop();
|
|
|
maxH = $('.limited-goods').offset().top;
|
|
|
maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight();
|
|
|
if (shareOffsetTop - scrollTop <= 0) {
|
|
|
$(".share").css({
|
|
|
"position": "fixed",
|
...
|
...
|
@@ -672,7 +672,7 @@ define('yohood', function(require, exports) { |
|
|
if ($('.bd').outerHeight() > $(window).height()) {
|
|
|
$(window).on('scroll', function() {
|
|
|
relatedH = relatedPost.outerHeight();
|
|
|
maxH = $('.limited-goods').offset().top;
|
|
|
maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight();
|
|
|
if ($(this).scrollTop() >= relatedTop) {
|
|
|
relatedPost.addClass('fix');
|
|
|
if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) {
|
...
|
...
|
@@ -709,7 +709,7 @@ define('yohood', function(require, exports) { |
|
|
var oTab = $('.site-activity-tab'),
|
|
|
tabTop = oTab.offset().top,
|
|
|
tabH = oTab.outerHeight(),
|
|
|
maxH = $('.limited-goods').offset().top;
|
|
|
maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight();
|
|
|
if ($('.bd').outerHeight() > $(window).height()) {
|
|
|
$(window).on('scroll', function() {
|
|
|
tabH = oTab.outerHeight();
|
...
|
...
|
|