Procházet zdrojové kódy

feat:底部导航修改

tsz před 3 roky
rodič
revize
17f860d01a

+ 8 - 6
src/jfw/modules/app/src/web/templates/weixin/historypush.html

@@ -700,6 +700,7 @@
   var pageIndex = 1;
   var closeAdvert = false//是否关闭广告
   var isread = {{.T.isread}}
+  var isPageShow = document.hidden
   // '/jyapp/myinfo'这个接口的返回值(同步请求,放心使用)
 //   有无关键词同意用这个myInfo中的内容判断
   var myInfo = {}
@@ -713,8 +714,6 @@
       }
   }
   $(function () {
-      var isPageShow = document.hidden
-      debugger
       setTimeout(function(){
         loadJS("{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/fastclick.min.js",function(){
           FastClick.attach(document.body);
@@ -749,9 +748,6 @@
           isinitpage = true;
         }
       });
-      if(isPageShow) {
-        JyObj.hiddenBottom("0");
-      }
       if (!isinitpage) {
         initpage();
         isinitpage = true;
@@ -913,6 +909,9 @@
           thisClass.LoadDatas(r);
       }
       this.LoadDatas=function(r){
+        if(isPageShow) {
+          JyObj.hiddenBottom("0");
+        }
         $(".app-content").css("display","flex");
         if(r.reLoad){
           removeSessionStorage();
@@ -962,7 +961,7 @@
         } else {
             if(historyVt == 's') {
                 $(".set_keyword").hide();
-            } 
+            }
             userId = sessionStorage.userId;
             $.ajax({
                 type: 'post',
@@ -1764,6 +1763,9 @@ function hasNoData() {
       if(!time && !area && !city && !subscopeclass && !buyerclass && !key && !subtype){
         afterJyObjInit();
       }
+      if(isPageShow) {
+        JyObj.hiddenBottom("0");
+      }
       $.ajax({
           type: 'post',
           url: '/publicapply/subscribe/historyPush?t=' + new Date().getTime(),