zhouna 4 years ago
parent
commit
647cc67e16
2 changed files with 2 additions and 4 deletions
  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){