瀏覽代碼

移入显示

1178232204@qq.com 3 年之前
父節點
當前提交
b963ad4b56
共有 2 個文件被更改,包括 4 次插入9 次删除
  1. 3 1
      src/css/cdssHorizontal.less
  2. 1 8
      src/js/cdss.js

+ 3 - 1
src/css/cdssHorizontal.less

@@ -227,7 +227,9 @@
 //     display: block;
 //   }
 // }
-
+.item-name:hover +.infoImg{
+  display: block;
+}
 .searchBox {
   margin: 38px 0 0 30px;
 }

+ 1 - 8
src/js/cdss.js

@@ -519,13 +519,6 @@ function renderWarningDiag(list,name,number){
     $('.moduleItem.warning').append(str)
     $('.moduleItem.warning').css("display","block")
   }
-
-  $(".pushItemBox,.pushItemName").mouseover(function(){
-    $(this).find(".infoImg").css("display","inline-block");
-  });
-  $(".pushItemBox,.pushItemName").mouseout(function(){
-    $(this).find(".infoImg").css("display","none");
-  });
 }
 
 function renderLis(list,showNum){
@@ -653,7 +646,7 @@ function renderItemWrapper(list, showNum) {
 function renderPushItem(item) {
   const infoIcon = `${ item.hasInfo == "1" ? `<img class="infoImg" src="${infoImg}">` : "" }`;
   str = `<span class="pushItemBox" data-name="${item.name}" data-type="${item.type}">`
-  str += `<span class="pushItemName ${item.hasScale == "1" ? 'evaluationtitle':''} ${item.hasInfo == "1" ? '':'noInfo'}">${item.type == 8 ? ('【' + item.name + '】') : item.name} ${infoIcon}<i class="hidden-i"></i></span>`
+  str += `<span class="pushItemName ${item.hasScale == "1" ? 'evaluationtitle':''} ${item.hasInfo == "1" ? '':'noInfo'}"><i class="item-name">${item.type == 8 ? ('【' + item.name + '】') : item.name}</i> ${infoIcon}<i class="hidden-i"></i></span>`
   str+=`</span>`;
   return str
 }