Browse Source

消息通知接口义乌判断

1178232204@qq.com 2 năm trước cách đây
mục cha
commit
868ec337b8
1 tập tin đã thay đổi với 15 bổ sung6 xóa
  1. 15 6
      src/js/index.js

+ 15 - 6
src/js/index.js

@@ -106,15 +106,21 @@ $(function () {
   if (isPlacefile == 0) {
     $(this).find('.qiehuan i').html('切换病案质控')
     $('.subtitle').html('AI运行质控平台')
-    getAuditNumber()
-    getNewsCount()
     getMenu()
+    getAuditNumber()
+    if(getCookie('checkAuth') == '5'){
+      getNewsCount()
+    }
+    
+    
   } else if (isPlacefile == 1) {
     $(this).find('.qiehuan i').html('切换运行质控')
     $('.subtitle').html('AI病案质控平台')
-    getAuditNumber()
-    getNewsCount()
     getMenu()
+    getAuditNumber()
+    if(getCookie('checkAuth') == '5'){
+      getNewsCount()
+    }
   }
   $(".header .title .qiehuan").click(function () {
     let txt = $(this).find('i').html()
@@ -128,9 +134,12 @@ $(function () {
       setCookie("isPlacefile", 1)
     }
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
-    getAuditNumber()
-    getNewsCount()
     getMenu();
+    getAuditNumber()
+    if(getCookie('checkAuth') == '5'){
+      getNewsCount()
+    }
+    
   })
   $(".header .title .qiehuan").mouseenter(function () {
     $(this).parent().find('img').attr('src', require('../images/qiehuan1.png'))