Browse Source

名片夹分页

xinfeng 6 years ago
parent
commit
1e70888863
1 changed files with 3 additions and 4 deletions
  1. 3 4
      pages/otherpage/user/card.vue

+ 3 - 4
pages/otherpage/user/card.vue

@@ -123,6 +123,7 @@
           }
         }).finally(() => {
           this.loadingPage = false
+          this.loading = false
         })
       },
       /** 打开弹出层 **/
@@ -147,10 +148,8 @@
 
       loadMore() {
         this.loading = true;
-        setTimeout(() => {
-          this.userList = [ ...this.userList, ...this.userList ]
-          this.loading = false;
-        }, 5000)
+        this.page.page = this.page.page + 1
+        this.getList()
       },
 
       jumpUserPage() {