From f0cafdfe0ed4d111d5f71e414e4985e26190d974 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 07 四月 2021 10:12:51 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/selectMat.html |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/pda/selectMat.html b/src/main/webapp/views/pda/selectMat.html
index 58fef5a..651397b 100644
--- a/src/main/webapp/views/pda/selectMat.html
+++ b/src/main/webapp/views/pda/selectMat.html
@@ -20,15 +20,14 @@
             background-color: #f1f1f1;
             padding: 5px;
             position: relative;
-            /*overflow: hidden;*/
         }
 
         /*header {*/
         /*    position: absolute;*/
         /*}*/
-        /*main {*/
-        /*    padding-top: 30px;*/
-        /*}*/
+        main {
+            padding-bottom: 5px;
+        }
 
         /* 澶撮儴鎼滅储鏍� */
         .search-box {
@@ -175,6 +174,7 @@
                         var template = Handlebars.compile(tpl);
                         var html = template(res);
                         $('#main-contain').html(html);
+                        toTop();
                     } else {
                         var tagId = parentId;
                         showMat(tagId);
@@ -208,6 +208,7 @@
                         var template = Handlebars.compile(tpl);
                         var html = template(res);
                         $('#main-contain').html(html);
+                        toTop();
                     } else {
                         $('#main-contain').html('<div style="text-align: center; margin-top: 15px"><span style="font-size: large">鏆傛棤鍟嗗搧</span></div>');
                     }
@@ -220,6 +221,14 @@
         })
     }
 
+    function toTop() {
+        window.scrollTo({
+            left: 0,
+            top: 0,
+            behavior: 'smooth'
+        })
+    }
+
 
 </script>
 <script type="text/template" id="tagTpl">

--
Gitblit v1.9.1