wangfei 6 years ago
parent
commit
c3a56c4bf5
1 changed files with 10 additions and 9 deletions
  1. 10
    9
      src/views/vote/list.vue

+ 10
- 9
src/views/vote/list.vue View File

@@ -49,12 +49,12 @@
49 49
             <span :class="{ [`theme${theme}`]: true, 'active': !active }">Top50</span>
50 50
           </div>
51 51
           <!-- <pull-to :bottom-load-method="loadTopList"> -->
52
-          <van-list
52
+          <!-- <van-list
53 53
             v-model="loading"
54 54
             :finished="finished"
55 55
             finished-text="没有更多了"
56 56
             @load="loadTopList"
57
-          >
57
+          > -->
58 58
             <div class="LatestUpload">
59 59
               <div class="LatestUploadList" v-for="(item,index) in topList" :key="index">
60 60
                 <div
@@ -72,7 +72,7 @@
72 72
                 </div>
73 73
               </div>
74 74
             </div>
75
-          </van-list>
75
+          <!-- </van-list> -->
76 76
           <!-- </pull-to> -->
77 77
         </van-tab>
78 78
       </van-tabs>
@@ -224,11 +224,11 @@ export default {
224 224
     //     this.newpage += 1
225 225
     //   }
226 226
     // })
227
-    // this.toplist().then((res) => {
228
-    //   if ((res || []).length === this.pageSize) {
229
-    //     this.toppage += 1
230
-    //   }
231
-    // })
227
+    this.toplist().then((res) => {
228
+      if ((res || []).length === this.pageSize) {
229
+        this.toppage += 1
230
+      }
231
+    })
232 232
   },
233 233
   methods: {
234 234
     ...mapMutations([
@@ -266,7 +266,8 @@ export default {
266 266
     toplist() {
267 267
       return this.getTopList({
268 268
         actid: this.actid,
269
-        page: this.toppage,
269
+        page: 1,
270
+        pagesize: 50,
270 271
         q: this.q
271 272
       });
272 273
     },