Эх сурвалжийг харах

fix:移动端匿名登录标讯详情页登录注册模块添加、滚动距离获取

yangfeng 1 жил өмнө
parent
commit
c0b52602a7

+ 5 - 3
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -408,6 +408,7 @@
 
     <div class="app-layout-content-b">
         {{if not .T.obj.hasSession}}
+        {{include "tags/template/tag-register-login-group.html" .}}
         {{include "tags/template/tag-info-type-nav.html" .}}
         {{include "tags/template/tag-area-nav.html" .}}
         {{end}}
@@ -3586,9 +3587,10 @@
       areaNavModule.init()
       backToTop.init()
       // 未登录状态下距顶部距离为顶部搜索框高度
-      $('.app-layout-content-b').css('top','1.12rem')
-      $('.h5-tabfix').css('top','1.12rem')
-      $('.wx-tabfix').css('top','1.12rem')
+      var headerTop = document.querySelector('.jy-app-header ').clientHeight
+      $('.app-layout-content-b').css('top', headerTop)
+      $('.h5-tabfix').css('top', headerTop)
+      $('.wx-tabfix').css('top', headerTop)
       $('.tag-breadcrumb-navigation').css('background', '#EDEFF2')
     })
   </script>