zhouna 4 년 전
부모
커밋
647cc67e16
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      src/css/searchStaticList.less
  2. 1 4
      src/js/searchStaticList.js

+ 1 - 0
src/css/searchStaticList.less

@@ -211,6 +211,7 @@
         position: relative;
         margin-right: 10px;
         outline: none;
+      background: none;
     }
     .totalSum{
         display: inline-block;

+ 1 - 4
src/js/searchStaticList.js

@@ -116,10 +116,6 @@ function renderList(tabList){
         `
     }
     $(".resultItemWrap").html(str);
-    /*setTimeout(function(){console.log($(".resultItemWrap").scrollTop())
-        $(".staticListWrap").scrollTop(10);
-    },1000)*/
-
     $('.resultItem').click(function(){
         let name = $(this).attr('data-name')
         let type = $(this).attr('data-type')
@@ -129,6 +125,7 @@ function renderList(tabList){
             window.open(`./staticInfo.html?name=${name}&type=${type}`);
         }
     })
+    window.scrollTo(0, 0);
 }
 function initData(){
     if(searchType){