Browse Source

空状态bug

zhouna 3 years ago
parent
commit
f797e62da4
3 changed files with 5 additions and 7 deletions
  1. 1 0
      src/css/cdssHorizontal.less
  2. 3 6
      src/js/cdssHorizontal.js
  3. 1 1
      src/js/followUp.js

+ 1 - 0
src/css/cdssHorizontal.less

@@ -429,6 +429,7 @@
 }
 .followUpWrap {
   position: absolute;
+  width: 100%;
   height: 202px;
   padding: 10px 20px;
   box-sizing: border-box;

+ 3 - 6
src/js/cdssHorizontal.js

@@ -111,7 +111,7 @@ function renderPage(pageSet) {
                 <img class="emptyImg" src="../images/icon_admin.png" alt="空">
                 <p class="emptyTxt">功能未开启</p>
             </div>`
-      $(".recommendWrap").html(nullTxt);
+      $(".recommendWrap").html(nullTxt).show();
       return;
   }
   if (hasTcm) {
@@ -252,7 +252,7 @@ function getModuleShow(moduleClassName) {
   if ($(`.${moduleClassName}`).css("display") == "none") {
     $(".moduleWrapper").css("display", "none")
     $(`.${moduleClassName}`).css("display", "block")
-    $(".empty-box").hide();
+    empty();
   }
 }
 function setTabNameTop() {
@@ -358,7 +358,7 @@ function renderPushData() {
 }
 function empty(){   //显示空状态
   setTimeout(function(){
-      if($(".moduleItem:visible").length===0){
+      if($(".empty-right:visible").length===0&&$(".moduleItem:visible").length===0){
           $(".empty-box").hide();
           $(".empty-null").show();
       }
@@ -749,9 +749,6 @@ $(function () {//隐藏logo
         $(".versionTop .logoTxt").hide();
     }
   getVersion()
-  $(window).on("resize", function () {
-    setWidth()
-  })
   $(".versionTop").on("click", function () {
     openNewWin("disclaimer.html")
   });

+ 1 - 1
src/js/followUp.js

@@ -210,7 +210,7 @@ function bindToggleInfo(){
 function followEmpty() {
     let str = `<div class="emptyBox">
         <img class="emptyImg" src=${emptyImg}>
-        <p class="emptyTxt">暂无随访计划</p>
+        <p class="emptyTxt">暂无随访计划</p>
     </div>`
     $(".followUpWrap").append(str)
 }