浏览代码

高度修改,新增返回按钮

zhouna 3 年之前
父节点
当前提交
c3923ac922
共有 9 个文件被更改,包括 27 次插入12 次删除
  1. 13 2
      src/css/common.less
  2. 1 0
      src/html/knowledgeGraph.html
  3. 2 3
      src/html/knowledgeTree.html
  4. 1 0
      src/html/participle.html
  5. 1 0
      src/html/qaPage.html
  6. 二进制
      src/images/bk.png
  7. 3 1
      src/js/api.js
  8. 1 1
      src/js/knowledgeTree.js
  9. 5 5
      src/js/schemaMap.js

+ 13 - 2
src/css/common.less

@@ -1,6 +1,7 @@
 html, body{
-    background: url("../images/bg2.png") no-repeat;
-    background-size: cover;
+    background: url("../images/bg2.png") #00193D no-repeat;
+    background-size: 100% 100%;
+    height: 100%;
     /*height: 100vh;
     overflow: hidden;*/
 }
@@ -29,6 +30,16 @@ ul,li{
 table,tr,td{
     list-style: none;
 }
+.back-btn{
+    float: right;
+    display: inline-block;
+    width: 50px;
+    line-height: 28px;
+    text-align: right;
+    margin-right: 10px;
+    cursor: pointer;
+    background: url("../images/bk.png") 0 6px no-repeat;
+}
 .title{
     width: 100%;
     min-width: 1200px;

+ 1 - 0
src/html/knowledgeGraph.html

@@ -18,6 +18,7 @@
 				<!--<img class="titleLogo ltLogo" src="./images/logo.png" alt="logo">
 				 <img class="titleLogo titleLogoShaiyifu" src="./images/logo_shaoyifu.png" alt="logo">-->
 				<span class="titleInfo">医学知识图谱</span>
+			  <span class="goto-homeStatic back-btn" link="/homeStatic.html">返回</span>
 			</div>
 		</div>
 		<div class="content clearfix">

+ 2 - 3
src/html/knowledgeTree.html

@@ -14,11 +14,11 @@
 <body>
   <div class="knowledgeTreeWrapper wrappper">
       <div class="title">
-      
         <div class="titleTxt">
           <!--<img class="titleLogo ltLogo" src="./images/logo.png" alt="logo">
            <img class="titleLogo titleLogoShaiyifu" src="./images/logo_shaoyifu.png" alt="logo">-->
           <span class="titleInfo">描述框架</span>
+          <span class="goto-homeStatic back-btn" link="/homeStatic.html">返回</span>
       </div>
       </div>
       <div class="content clearfix">
@@ -82,7 +82,6 @@
     <div class="footer ltLogo">
       杭州朗通信息技术有限公司 & 浙江省卫生健康委&nbsp;&nbsp;&nbsp;联合开发
     </div>
-
+  </div>
 </body>
-
 </html>

+ 1 - 0
src/html/participle.html

@@ -16,6 +16,7 @@
 				<!--<img class="titleLogo ltLogo" src="./images/logo.png" alt="logo">
 				 <img class="titleLogo titleLogoShaiyifu" src="./images/logo_shaoyifu.png" alt="logo">-->
 				<span class="titleInfo">电子病历信息抽取</span>
+			  <span class="goto-homeStatic back-btn" link="/homeStatic.html">返回</span>
 			</div>
 		</div>
 		<div class="content">

+ 1 - 0
src/html/qaPage.html

@@ -16,6 +16,7 @@
             <!--<img class="titleLogo ltLogo" src="./images/logo.png" alt="logo">
              <img class="titleLogo titleLogoShaiyifu" src="./images/logo_shaoyifu.png" alt="logo">-->
             <span class="titleInfo">智能问答</span>
+            <span class="goto-homeStatic back-btn" link="/homeStatic.html">返回</span>
         </div>
     </div>
     <div class="content">

二进制
src/images/bk.png


+ 3 - 1
src/js/api.js

@@ -10,7 +10,9 @@ const api = {
   getTerm:'/api/ltkg/term/getTerm',
   check:'http://192.168.2.121:7010/test/testStandConvert',
 };
-
+$(".goto-homeStatic").on("click",function(){
+  window.location.href = "http://192.168.2.121:5666"+$(this).attr("link");
+});
 const getUrlArgObject = function(name) {//
   var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
   var reg_rewrite = new RegExp("(^|/)" + name + "/([^/]*)(/|$)", "i");

+ 1 - 1
src/js/knowledgeTree.js

@@ -33,7 +33,7 @@ window.refreshTree = true
 ifHideLogo()
  function setHei(){
     const clientHei = $(window).height()
-    const contentHei = clientHei - 80+12
+    const contentHei = clientHei - 110
     $(".left").css("height",contentHei+'px')
     $(".right").css("height",contentHei+'px')
     console.log('select_type',select_type)

+ 5 - 5
src/js/schemaMap.js

@@ -479,20 +479,20 @@ function bindTabClick(){
 }
 function setTabBottomHei(type){
     const clientHei = $(window).height()
-    const contentHei = clientHei - 80
+    const contentHei = clientHei - 110
     if(type==1){
         $(".tabBottom").css({
             'margin': '0px 0px 0px 0px'
         })
-        $(".tabBottom").css("height",contentHei-80-43-10+12+'px')
-        $(".ztree").css("height",contentHei-80-43-60-20-24+12+'px')
+        $(".tabBottom").css("height",contentHei-80-43-12+'px')
+        $(".ztree").css("height",contentHei-80-43-60-20-24+'px')
 
     }else if(type == 2){
-        $(".tabBottom").css("height",contentHei-80-43-10-20+12+'px')
+        $(".tabBottom").css("height",contentHei-80-43-12-20+'px')
         $(".tabBottom").css({
             'margin': '20px 0px 0px 0px'
         })
-        $(".ztree").css("height",contentHei-80-43-20-20-20+12+'px')
+        $(".ztree").css("height",contentHei-80-43-20-20-20+'px')
     }
  }
  function setSelectName(name){