Pārlūkot izejas kodu

Merge branch 'dynamicScale0609' into testNew

wyq 3 gadi atpakaļ
vecāks
revīzija
41a7e811d9
2 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. 2 1
      src/css/informationOut.less
  2. 4 3
      src/js/informationOut.js

+ 2 - 1
src/css/informationOut.less

@@ -493,7 +493,7 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
     .result_title{
       max-width: 85%;
       display: inline-block;
-      margin-left: 65px;
+      margin-left: 70px;
     }
   }
   
@@ -557,6 +557,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;
     }

+ 4 - 3
src/js/informationOut.js

@@ -123,10 +123,11 @@ function showInfoSelect(){
     selectedTab = 0;
     showName = showLis[idx].name + "(" + showLis[idx].hisName + ")";
     // showInfo(showLis[idx])
-    renderTitleShow();
+    
     $('.content .infos').scrollTop(0)
     $(".showWhich ul").css("display", "none")
     $(".showWhichSelect").html(name).attr("title", name)
+    renderTitleShow();
   })
   $(".showWhichSelect").click(function (e) {
     e.stopPropagation()
@@ -136,9 +137,9 @@ function showInfoSelect(){
     $(".showWhich ul").css("display", "none")
   })
 }
-function renderTitleShow() {
+function renderTitleShow(name) {
   document.title = showName;
-  $(".titleCont .title").html($(".tabList .tab:eq(" + selectedTab + ")").attr("data-title"));
+  $(".titleCont .title").html($(".showWhich .showWhichSelect").attr("title"));
 }
 function renderContent(list, contentWrapClassName) {
   $(`.${contentWrapClassName} .infos`).html('');