Showing
1 changed file
with
4 additions
and
8 deletions
@@ -388,6 +388,9 @@ define('yohood', function(require, exports) { | @@ -388,6 +388,9 @@ define('yohood', function(require, exports) { | ||
388 | }, | 388 | }, |
389 | success: function(data) { | 389 | success: function(data) { |
390 | $("#brand_detail").html(data); | 390 | $("#brand_detail").html(data); |
391 | + if($(window).height() < 580 ) { //小屏幕,去掉关闭按钮 | ||
392 | + $("#brand_detail").find('.brand-close-btn').remove(); | ||
393 | + } | ||
391 | $('.overlay').show(); | 394 | $('.overlay').show(); |
392 | } | 395 | } |
393 | }); | 396 | }); |
@@ -521,6 +524,7 @@ define('yohood', function(require, exports) { | @@ -521,6 +524,7 @@ define('yohood', function(require, exports) { | ||
521 | $(this).addClass('current').siblings().removeClass('current'); | 524 | $(this).addClass('current').siblings().removeClass('current'); |
522 | $('.side-related-list').hide().eq(nowIndex).show(); | 525 | $('.side-related-list').hide().eq(nowIndex).show(); |
523 | }); | 526 | }); |
527 | + | ||
524 | if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) { | 528 | if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) { |
525 | //右侧相关文章定位 | 529 | //右侧相关文章定位 |
526 | relatedPost = $('.side-related-post'); | 530 | relatedPost = $('.side-related-post'); |
@@ -548,17 +552,9 @@ define('yohood', function(require, exports) { | @@ -548,17 +552,9 @@ define('yohood', function(require, exports) { | ||
548 | } else { | 552 | } else { |
549 | relatedPost.removeClass('fix').removeAttr('style'); | 553 | relatedPost.removeClass('fix').removeAttr('style'); |
550 | } | 554 | } |
551 | - if ($(this).scrollTop() <= maxH - relatedH) { | ||
552 | - relatedPost.css({ | ||
553 | - 'position': 'fixed', | ||
554 | - 'top': 0 | ||
555 | }); | 555 | }); |
556 | } | 556 | } |
557 | - } else { | ||
558 | - relatedPost.removeClass('fix').removeAttr('style'); | ||
559 | } | 557 | } |
560 | - } | ||
561 | - }); | ||
562 | 558 | ||
563 | //分享按钮位置 | 559 | //分享按钮位置 |
564 | var shareOffsetTop = $(".share").offset().top; | 560 | var shareOffsetTop = $(".share").offset().top; |
-
Please register or login to post a comment