Преглед на файлове

fix: 结构化数据底部ad固定

cuiyalong преди 4 години
родител
ревизия
11d17b57a6
променени са 1 файла, в които са добавени 3 реда и са изтрити 25 реда
  1. 3 25
      src/web/templates/structuredata/pc/index.html

+ 3 - 25
src/web/templates/structuredata/pc/index.html

@@ -385,31 +385,9 @@
         })
 
         // 底部ad
-        fixedBottomAd()
-        function fixedBottomAd () {
-            var bottomFixedAdShow = true
-            $('.i-need-more .closed').on('click', function () {
-                bottomFixedAdShow = false
-                $('.i-need-more').fadeOut()
-            })
-            var top1 = 0;
-            var top2 = 0;
-            var timer = null;
-            $(window).on('scroll', function () {
-                clearTimeout(timer);
-                if (!bottomFixedAdShow) return
-                timer = setTimeout(isScrollEnd, 800);
-                top1 = document.documentElement.scrollTop || document.body.scrollTop;
-                $('.i-need-more').fadeOut()
-            })
-
-            function isScrollEnd() {
-                top2 = document.documentElement.scrollTop || document.body.scrollTop;
-                if (top1 == top2 && bottomFixedAdShow) {
-                    $('.i-need-more').fadeIn()
-                }
-            }
-        }
+        $('.i-need-more .closed').on('click', function () {
+            $('.i-need-more').fadeOut()
+        })
     })
     
     /******* 获取url参数(正则)********/