Explorar el Código

我的-上拉刷新请求数据

jf hace 5 años
padre
commit
b3b2575126
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      ghsApp/src/admin/home/me.vue

+ 4 - 3
ghsApp/src/admin/home/me.vue

@@ -153,10 +153,10 @@ export default {
     };
     };
   },
   },
   onPullDownRefresh() {
   onPullDownRefresh() {
-        uni.stopPullDownRefresh();
+					this.init()
   },
   },
   onShow(){
   onShow(){
-    this.init()
+    // this.init()
   },
   },
   methods: {
   methods: {
     shopShow() {
     shopShow() {
@@ -167,6 +167,7 @@ export default {
       try {
       try {
         const { data } = await mainMy();
         const { data } = await mainMy();
         this.infoData = data;
         this.infoData = data;
+							uni.stopPullDownRefresh();
       } finally {
       } finally {
       }
       }
     },
     },
@@ -373,4 +374,4 @@ export default {
     border-radius: 10px;
     border-radius: 10px;
   }
   }
 }
 }
-</style>
+</style>