Browse Source

his页样式修改

wyq 3 years ago
parent
commit
3740bb01fc
3 changed files with 17 additions and 12 deletions
  1. 1 0
      src/css/informationOut.less
  2. 13 8
      src/js/informationOut.js
  3. 3 4
      src/js/staticInfo.js

+ 1 - 0
src/css/informationOut.less

@@ -548,6 +548,7 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   .infos-box{
     border: 1px solid #E6E6E6;
     margin: 0 71px 20px 38px;
+    padding-top: 20px;
     .infoWrapper {
       padding: 0 75px;
     }

+ 13 - 8
src/js/informationOut.js

@@ -13,7 +13,8 @@ const {
   imageUrlPrefix,
   config,
   getUrlArgObject,
-  openNewWin
+  openNewWin,
+  Toast
 } = require('./promise.js');
 const $ = require("jquery");
 require("./jquery-migrate");
@@ -114,7 +115,7 @@ function showInfoSelect() {
     selectedDrop = idx;
     selectedTab = 0;
     showName = showLis[idx].name + "(" + showLis[idx].hisName + ")";
-    showInfo(showLis[idx])
+    // showInfo(showLis[idx])
     renderTitleShow();
     $('.content .infos').scrollTop(0)
     $(".showWhich ul").css("display", "none")
@@ -487,25 +488,29 @@ function addLinkClickEvent(contentWrapClassName) {
 }
 
 function renderTab(detailList, scale) {
-  $(".tabList").html('')
   if (detailList['静态知识']) {
     $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="` + showName + `">静态知识</span>`)
-    //$(".titleCont .title").html(showName);
   }
   if (detailList['临床路径']) {
     $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="` + clinicalPathwayName + `">临床路径</span>`)
-    //$(".titleCont .title").html(clinicalPathwayName);
+    //$(".tabBox .title").html(clinicalPathwayName);
   }
   if (detailList['注意事项']) {
     $(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
-    //$(".titleCont .title").html(noticeName);
+    //$(".tabBox .title").html(noticeName);
   }
   if (scale) {
     $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
     //$(".tabBox .title").html(noticeName);
   }
-  $(".tabList .tab").eq(selectedTab).addClass("activeTab")
-  let defaultModuleName = $(".tabList .tab").eq(selectedTab).attr("data-module")
+  let defaultModuleName
+  if ((getUrlArgObject('page') && getUrlArgObject('page') == 1 && scale)) {
+    $(".tabList .tab").eq(1).addClass("activeTab")
+    defaultModuleName = $(".tabList .tab").eq(1).attr("data-module")
+  } else {
+    $(".tabList .tab").eq(0).addClass("activeTab")
+    defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
+  }
   $(`.${defaultModuleName}`).css("display", "block")
   bindTabClick()
 }

+ 3 - 4
src/js/staticInfo.js

@@ -356,8 +356,8 @@ function getResult(pushInfo, textType) {
         }
       });
       
-      if (multarr.join("")){
-        arr.push(multname + multarr.join(""))
+      if (multarr.join("")){
+        arr.push(multname + multarr.join(""))
       }
       tmp = arr.join(";");
       if (pushInfo.length > 0) {
@@ -441,8 +441,7 @@ function renderTab(detailList, scale) {
     //$(".tabBox .title").html(noticeName);
   }
   let defaultModuleName
-
-  if ((getUrlArgObject('page') && getUrlArgObject('page') == 1 && scale) || !detailList['静态知识']) {
+  if ((getUrlArgObject('page') && getUrlArgObject('page') == 1 && scale)) {
     $(".tabList .tab").eq(1).addClass("activeTab")
     defaultModuleName = $(".tabList .tab").eq(1).attr("data-module")
   } else {