zhouna 4 years atrás
parent
commit
b9f5bd90e2
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/js/utils.js

+ 8 - 2
src/js/utils.js

@@ -302,13 +302,19 @@ $('.modal .close').click(function() {
 //计算容器高度
 function setBoxHeight() {
   const ht = window.innerHeight;
-  $('.content-box').height(ht - 60 + 'px');
+  const hw = window.innerWidth;
+  if(hw<1169){
+      $('.content-box').height(ht - 110 + 'px');
+  }else{
+      $('.content-box').height(ht - 60 + 'px');
+  }
+  //$('.content-box').height(ht - 60 + 'px');
   $('.flaw-table').height(ht - 70 + 'px');
   $('.content-ht').height(ht - 120 + 'px');
   $('.scroll-table tbody').css('max-height', ht - 210 + 'px');
 }
 setBoxHeight();
-$(window).resize(function() {
+$(window).resize(function() {console.log(32)
   setBoxHeight();
 });