zhouna %!s(int64=4) %!d(string=hai) anos
pai
achega
a2392dcde5
Modificáronse 2 ficheiros con 10 adicións e 8 borrados
  1. 5 5
      src/css/staticInfoOut.less
  2. 5 3
      src/js/staticInfoOut.js

+ 5 - 5
src/css/staticInfoOut.less

@@ -229,27 +229,27 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
     padding: 0 40px 0;
   }
   .showWhich {
-    width: 94px;
+    width: 187px;
     text-align: center;
     padding: 30px 0 20px;
     position: relative;
     .showWhichSelect {
       display: inline-block;
       color: @staticMainColor;
-      background: url("../images/d1.png") 100px 9px #EAFCFF no-repeat;
+      background: url("../images/d1.png") 200px 9px #EAFCFF no-repeat;
       font-size: 16px;
-      padding:0 24px 0 9px;
+      padding:1px 24px 2px 9px;
       width: 100%;
       cursor: pointer;
     }
     ul {
       display: none;
       position: absolute;
-      left: -9px;
+      left: 0;
       top: 52px;
       z-index: 10;
       background-color: #fff;
-      width: 110px;
+      width: 220px;
       box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.18);
       border-radius: 4px;
       border: 1px solid #E6E6E6;

+ 5 - 3
src/js/staticInfoOut.js

@@ -44,6 +44,7 @@ function getInfomation() {
       const data = res.data.data
       var str = '';
       var anchors = '';
+      let sName ='';
       if (!data||data.length===0) {
         showEmpty();
         return;
@@ -52,10 +53,11 @@ function getInfomation() {
       showLis=data
       for(let i = 0;i < showLis.length;i++){
         let tmp = showLis[i]
-        str+=`<li data-idx="${i}" title="${tmp.name}">${tmp.name}</li>`
+        str+=`<li data-idx="${i}" title="${tmp.name}">${tmp.name}(${tmp.hisName})</li>`
       }
-      $(".showWhich ul").html(str)
-      $(".showWhichSelect").html(showLis[0].name).attr("title",showLis[0].name)
+      $(".showWhich ul").html(str);
+        sName=showLis[0].name+"("+showLis[0].hisName+")";
+      $(".showWhichSelect").html(sName).attr("title",sName)
       showName = data[0].name
       document.title = showName
       showInfoSelect()