Browse Source

03/14 22:14

垃圾list
261568008@qq.com 5 years ago
parent
commit
18b8dd8605

File diff suppressed because it is too large
+ 0 - 0
dist/css/ManageEvaluation.b2da76d3.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/ManageEvaluation.6c0e0f48.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/ManageEvaluation.e3dc341e.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.7c76161d.js


+ 11 - 13
src/views/audition/ManageEvaluation.vue

@@ -60,7 +60,7 @@
     <!--  -->
 
     <!-- <van-pull-refresh v-model="refreshing" @refresh="onRefresh"> -->
-      <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="getList">
+      <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="getList"  :offset="1" style="height:600px;">
         <van-cell
           v-for="(item,index) in courseList"
           :key="index"
@@ -230,32 +230,29 @@ export default {
       this.$refs.item.toggle();
     },
     getList() {
-      
+       this.loading = true;
       this.search.startTime =
         this.dateSection.showStartDate.replace(/\//g, "-") + " 00:00:00";
       (this.search.endTime =
         this.dateEndSection.showEndDate.replace(/\//g, "-") + " 23:59:59"),
         (this.search.page = this.page);
+        this.search.rows = 10;
         this.page++;
       getPracticeGroup(this.search).then(res => {
         if (res.data.code == 200) {
-          if (this.refreshing) {
-            this.courseList = [];
-          }
-          if (res.data.data.rows.length == 0) {
-          
+           this.loading = false;
+          if (res.data.data.rows.length < 10) {
             this.finished = true;
           }
           if (this.courseList.length > 0) {
             this.courseList = this.courseList.concat(res.data.data.rows);
+            console.log('拼接')
           } else {
             this.courseList = res.data.data.rows;
+             console.log('赋值')
           }
-          if (this.courseList.length >= 20) {
-            this.finished = true;
-          }
-
-          this.loading = false;
+          console.log(this.courseList)
+         
           this.refreshing = false;
         } else {
           this.finished = true;
@@ -270,7 +267,7 @@ export default {
       this.page = 1;
       // 重新加载数据
       // 将 loading 设置为 true,表示处于加载状态
-      this.loading = true;
+      this.loading = false;
       this.courseList = [];
       this.getList();
     },
@@ -331,6 +328,7 @@ export default {
   .van-hairline-unset--top-bottom::after {
     border-width: 0 0;
   }
+
   /deep/.van-dropdown-menu__title {
     font-size: 0.17rem;
     color: #1a1a1a;

Some files were not shown because too many files changed in this diff