Browse Source

Merge branch 'scrollBar' into test

zhangxc 5 years ago
parent
commit
9b231e4e91
2 changed files with 9 additions and 3 deletions
  1. 5 0
      src/css/qcScore.less
  2. 4 3
      src/js/qcScore.js

+ 5 - 0
src/css/qcScore.less

@@ -114,6 +114,11 @@
     /*background: @activeBg;
     border-right: 3px @activeColor solid;*/
   }
+  .subMenu>.active{
+    color: @activeColor;
+    /*background: @activeBg;
+    border-right: 3px @activeColor solid;*/
+  }
   .page:hover{
       color: @activeColor;
   }

+ 4 - 3
src/js/qcScore.js

@@ -35,7 +35,7 @@ function initMenu(data){
     $(this).toggleClass('slide-up');
     $(this).find("ul").slideToggle();
     setTimeout(function(){
-      initScroll("subMenu","Y",2)
+      // initScroll("subMenu","Y",2)
     },300)
   });
   $(".sub-menu .list-1 li").on("click",function(e){
@@ -81,7 +81,7 @@ function initMenu(data){
     $(".content-item[code='"+code+"']").show();
     showFlawList();
   });
-  initScroll("subMenu","Y",2)
+  // initScroll("subMenu","Y",2)
 }
 //判断有无某一权限
 function hasData(data){
@@ -104,7 +104,8 @@ function getRecordDetail(){
       const {beHospital,result,msg} = data;
       const info=Object.assign(beHospital,result);
       initMenu(JSON.parse(result.menuData));
-      $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
+      // $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
+      $(".subMenu >li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
      global_activeTab=$(".sub-menu .page.active").attr("code");
       initPatientInfo(info);
       initContent(result.pageData);