zhouna пре 4 година
родитељ
комит
29fcce72b1
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/js/searchStaticList.js

+ 6 - 2
src/js/searchStaticList.js

@@ -115,6 +115,10 @@ 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')
@@ -183,7 +187,7 @@ function renderPagination(totalPage,activePage,totalNum){
     $('.pagination').html(str)
     $('.page' + activePage).addClass('activePage')
     $(".pageNum").on("click", function(e){
-        console.log($(this)[0])
+        //console.log($(this)[0])
         const activePageNow = Number($(this).attr('data-page'))
         curPage = activePageNow
         getTabData()
@@ -210,7 +214,7 @@ function renderPagination(totalPage,activePage,totalNum){
     $('.goNum input').change(function(){
         const n = $(this).val()
         if (totalPage < n || n < 1) {
-            toggleWarnBox("请输入1到最大页数范围内的数字");
+            toggleWarnBox("请输入1-" + totalPage + "范围内的整数");
             return;
         }
         curPage = n;