Browse Source

修改样式

zhangxc 4 years atrás
parent
commit
550c3d57e3
4 changed files with 11 additions and 2 deletions
  1. 4 1
      src/css/cdss.less
  2. 1 0
      src/css/staticSearch.css
  3. 5 0
      src/js/cdss.js
  4. 1 1
      src/js/staticSearch.js

+ 4 - 1
src/css/cdss.less

@@ -321,7 +321,7 @@ body{
 .staticSearchB ul{
     position: absolute;
     height: 480px;
-    width: 100%;
+    // width: 100%;
     /* right: 30px; */
     left: 0; 
     overflow: auto;
@@ -340,4 +340,7 @@ body{
 .warningTitle{
     position: relative;
     margin-right: 15px;
+}
+.medicalKonwledgeWrap{
+    padding: 0 30px;
 }

+ 1 - 0
src/css/staticSearch.css

@@ -73,6 +73,7 @@
     right: 30px;
     left: 30px;
     overflow: auto;
+    padding: 0 30px;
 }
 .staticSearchB ul li {
     border-bottom: 1px #CECECE solid;

+ 5 - 0
src/js/cdss.js

@@ -547,6 +547,11 @@ function bindTabClick(){
     $(this).addClass("activeTab")
     const moduleName = $(this).attr("data-name")
     getModuleShow(moduleConfig[moduleName])
+    if(moduleName == "medical"){
+      $(".contentWrapper").css("overflowY","hidden")
+    }else{
+      $(".contentWrapper").css("overflowY","auto")
+    }
   })
 }
 

+ 1 - 1
src/js/staticSearch.js

@@ -126,7 +126,7 @@ function adjustHeight() {
     var ht = window.innerHeight;
     var containerHt = $(".medicalKonwledgeWrap .container").height()
     var ht2 = $(".searchTypeBox").outerHeight(true)
-    $(".staticSearchB ul").height(containerHt - 120-10 - ht2 + "px");
+    $(".staticSearchB ul").height(ht - 120-10-40 - ht2 + "px");
 }
 $(window).on('resize', function(){
     adjustHeight()