Bladeren bron

his对接页图片不显示问题

wyq 3 jaren geleden
bovenliggende
commit
1527847886
4 gewijzigde bestanden met toevoegingen van 15 en 11 verwijderingen
  1. 1 0
      src/css/common.less
  2. 4 1
      src/css/informationOut.less
  3. 5 5
      src/js/informationOut.js
  4. 5 5
      src/js/staticInfo.js

+ 1 - 0
src/css/common.less

@@ -60,6 +60,7 @@
     height: 100%;
     background: #000;
     opacity: .3;
+    filter:Alpha(opacity=30);
     z-index: 999;
   }
   .inner-box {

+ 4 - 1
src/css/informationOut.less

@@ -225,7 +225,10 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   border-radius: 0;
   border: none;
   background-color: #F5F6F7;
-  background: url('../images/icon_current.png') center center no-repeat;
+  background: url('../images/icon_current.png');
+  background-repeat: no-repeat;
+  background-position-x: center;
+  background-position-y: center;
   background-size: 18px 9px;
 }
   .disCopy {

+ 5 - 5
src/js/informationOut.js

@@ -531,10 +531,10 @@ function renderTab(detailList, scale) {
     $(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
     //$(".tabBox .title").html(noticeName);
   }
-  if (scale || getUrlArgObject('gauge') == 'gauge' || getUrlArgObject('type') == 8) {
-    $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
-    //$(".tabBox .title").html(noticeName);
-  }
+  // if (scale || getUrlArgObject('gauge') == 'gauge' || getUrlArgObject('type') == 8) {
+  //   $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
+  //   //$(".tabBox .title").html(noticeName);
+  // }
   let defaultModuleName
   if ((getUrlArgObject('page') && getUrlArgObject('page') == 1 && scale && detailList['静态知识']) || getUrlArgObject('scale') == 'scale') {
     $(".tabList .tab").eq(1).addClass("activeTab")
@@ -543,7 +543,7 @@ function renderTab(detailList, scale) {
     $(".tabList .tab").eq(0).addClass("activeTab")
     defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
   }
-  if (detailList['静态知识'] == undefined) {
+  if (!scale || detailList['静态知识'] == undefined) {
     $(".tabList .tab").eq(0).removeClass("activeTab")
   }
   $(`.${defaultModuleName}`).css("display", "block")

+ 5 - 5
src/js/staticInfo.js

@@ -466,10 +466,10 @@ function renderTab(detailList, scale) {
     $(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
     //$(".tabBox .title").html(noticeName);
   }
-  if (scale || getUrlArgObject('gauge') == 'gauge' || getUrlArgObject('type') == 8) {
-    $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
-    //$(".tabBox .title").html(noticeName);
-  }
+  // if (scale || getUrlArgObject('gauge') == 'gauge' || getUrlArgObject('type') == 8) {
+  //   $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
+  //   //$(".tabBox .title").html(noticeName);
+  // }
   let defaultModuleName
   if (getUrlArgObject('page') && getUrlArgObject('page') == 1 && scale && detailList['静态知识']) {
     $(".tabList .tab").eq(1).addClass("activeTab")
@@ -478,7 +478,7 @@ function renderTab(detailList, scale) {
     $(".tabList .tab").eq(0).addClass("activeTab")
     defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
   }
-  if (detailList['静态知识'] == undefined){
+  if (!scale || detailList['静态知识'] == undefined){
     $(".tabList .tab").eq(0).removeClass("activeTab")
   }
   $(`.${defaultModuleName}`).css("display", "block")