Explorar o código

采购页优化

shish hai 1 ano
pai
achega
a0c08b1c25
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      hdApp/src/pagesPurchase/shopping.vue

+ 4 - 0
hdApp/src/pagesPurchase/shopping.vue

@@ -130,6 +130,10 @@ export default {
 		},	
 		},	
     change(e) {
     change(e) {
       if (this.tabIndex != e.index) {
       if (this.tabIndex != e.index) {
+        uni.pageScrollTo({
+          scrollTop: 0,
+          duration: 0
+        });
         this.resetList();
         this.resetList();
         this.list.finished = true;
         this.list.finished = true;
         this.tabIndex = e.index;
         this.tabIndex = e.index;