浏览代码

分页问题修改

xinfeng 6 年之前
父节点
当前提交
953ed33936
共有 1 个文件被更改,包括 3 次插入12 次删除
  1. 3 12
      pages/user/_id/_type.vue

+ 3 - 12
pages/user/_id/_type.vue

@@ -331,6 +331,7 @@
       changeitem(x) {
         this.item = x
         this.page = 0
+        this.currentPage = 1
         this.list = []
         this.getList()
       },
@@ -363,9 +364,7 @@
             console.log("cancel");
           });
       },
-      clickLancer({
-                    id
-                  }) {
+      clickLancer({ id }) {
         this.$router.push(baseUrl + `/cert/type/${id}`);
       },
       btnDisabled(item) {
@@ -418,17 +417,9 @@
               break
             default:
               list = res.data.topics
-              console.log(this.list)
               this.listCount = (res.data.topics_count + 1 - 1) || 0
           }
-
-          if (!list.length) {
-            this.noMore = true;
-            return;
-          } else {
-            let list2 = this.list
-            this.list = list2.concat(list)
-          }
+          this.list = list
         }
       },
       canApply(item) {