Explorar o código

feat: 修复获取内容层级问题

zhangyuhan %!s(int64=3) %!d(string=hai) anos
pai
achega
93fa11c97f

+ 6 - 4
src/jfw/modules/app/src/web/staticres/jyapp/js/common.js

@@ -1074,7 +1074,7 @@ function checkMsgCount(acync, str, callback) {
       } else {
         localStorage.setItem('isMsgNum', num)
       }
-      
+
       callback && callback()
     }
   })
@@ -1272,7 +1272,9 @@ function redSpotOnMenu () {
 function redSpotBackFuc (r, flag) {
   var noticeCount = r.notice;
   //JyObj.getUnReadMessageCount("");
-  checkMsgCount(false, 0)
+  // #fix 修复三级页同步请求导致页面白屏时间过长
+  var isContent = location.href.indexOf('/article/content/') === -1
+  checkMsgCount(isContent, 0)
   // message红点
   if (noticeCount > 0) {
     $(".trigger-div-notice .dot-red").show()
@@ -1660,5 +1662,5 @@ function newVersionUpdateLog(event,new_version){
 	    phonetype: getPhoneType(),//手机型号
 		system: androidVersion()
 	})
-	
-}
+
+}

+ 1 - 1
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -340,7 +340,7 @@
             </div>
             <!-- 最新标讯 -->
             <div class="home_data">
-                <h3 class="data_nav" onclick="location.reload()">最新标讯</h3>
+                <h3 class="data_nav">最新标讯</h3>
                 <div class="data_list">
                     <!--首页列表-->
                 </div>

+ 11 - 0
src/web/staticres/common-module/public/head.js

@@ -15,3 +15,14 @@
     s.parentNode.insertBefore(hm, s);
   }, 300);
 })();
+try {
+  // 剑鱼荟聚Event
+  var hm = document.createElement("script");
+  hm.src = '/common-module/track/j-track.min.js?v=1'
+  setTimeout(function(){
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+  }, 300);
+} catch (e) {
+  console.log(error)
+}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
src/web/staticres/common-module/track/j-track.min.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
src/web/staticres/common-module/track/j-track.min.js.map


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio