jwyu 2 years ago
parent
commit
77d43462b5
1 changed files with 8 additions and 0 deletions
  1. 8 0
      pages/positionAnalysis/index.vue

+ 8 - 0
pages/positionAnalysis/index.vue

@@ -5,6 +5,7 @@
             sticky 
             animated 
             swipeable 
+            @change="onChange"
             color="#E3B377"
             id="tabs"
         >
@@ -58,6 +59,13 @@ export default {
                 })
                 
             }
+        },
+
+        onChange(){
+            uni.pageScrollTo({
+                scrollTop: 0,
+                duration: 300
+            });
         }
     },
 }