wangfei 6 年前
父节点
当前提交
c3a56c4bf5
共有 1 个文件被更改,包括 10 次插入9 次删除
  1. 10
    9
      src/views/vote/list.vue

+ 10
- 9
src/views/vote/list.vue 查看文件

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