1178232204@qq.com 3 éve
szülő
commit
b85fc73657
2 módosított fájl, 9 hozzáadás és 5 törlés
  1. 1 0
      src/css/cdss.less
  2. 8 5
      src/js/cdss.js

+ 1 - 0
src/css/cdss.less

@@ -658,6 +658,7 @@ body {
     .shortBox,
     .longBox {
       padding: 4px 0;
+      overflow: hidden;
       .showMore {
         right: 5px;
         .iconArrowImg {

+ 8 - 5
src/js/cdss.js

@@ -726,10 +726,13 @@ function renderAffListList(list, showNum) {
         $(".loading").show();
         $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
         $(".hasdiagnose .box").find(".moduleCenter").css("display", "none")
+        $(".hasdiagnose .box").find(".box-img").attr('src', down)
         $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
+        $(e.target).find(".box-img").attr('src', ups)
         renderpushByHasDisease(name, i)
       } else {
         $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
+        $(e.target).find(".box-img").attr('src', down)
       }
     });
 
@@ -1199,7 +1202,7 @@ function renderItemWrapper(list, showNum, name) {
     longStr += `<span class="showLess"><img class="iconArrowImg"  src="${iconArrowUp}"></span>`
     return {
       shortStr: `<div class="shortBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span><div class="${name ? `${name == '推荐检验' || name == '推荐检查'?'shortBox-tit1' : 'shortBox-tit2'}` : ''}">${shortStr}</div></div>`,
-      longStr: `<div class="longBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span><divclass="${name ? `${name == '推荐检验' || name == '推荐检查'?'shortBox-tit1' : 'shortBox-tit2'}` : ''}">${shortStr}</div></div></div>`
+      longStr: `<div class="longBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span><div class="${name ? `${name == '推荐检验' || name == '推荐检查'?'shortBox-tit1' : 'shortBox-tit2'}` : ''}">${longStr}</div></div></div>`
     }
   }
 }
@@ -1222,12 +1225,12 @@ function bindOpenInfo() {
 
 function bindSlide() {
   $(".showMore").off("click").on("click", function () {
-    $(this).parent().parent().find(".longBox").css("display", "block")
-    $(this).parent().parent().find(".shortBox").css("display", "none")
+    $(this).parent().parent().parent().find(".longBox").css("display", "block")
+    $(this).parent().parent().parent().find(".shortBox").css("display", "none")
   })
   $(".showLess").off("click").on("click", function () {
-    $(this).parent().parent().find(".longBox").css("display", "none")
-    $(this).parent().parent().find(".shortBox").css("display", "block")
+    $(this).parent().parent().parent().find(".longBox").css("display", "none")
+    $(this).parent().parent().parent().find(".shortBox").css("display", "block")
   })
 }