Jelajahi Sumber

调整移动端分页下面不显示没有更多数据的问题

Lijy 3 tahun lalu
induk
melakukan
d5cb910c26

+ 2 - 4
fhKeeper/formulahousekeeper/timesheet_h5/src/views/project/index.vue

@@ -15,7 +15,7 @@
                 </van-list>
             </van-pull-refresh> -->
             <van-pull-refresh v-model="isDownLoading" @refresh="onDownRefresh">
-                <van-list v-model="isUpLoading" :finished="upFinished" :immediate-check="false" :offset="10" finished-text="我是有底线的" @load="onLoadList">
+                <van-list v-model="isUpLoading" :finished="upFinished" :immediate-check="false" :offset="100" finished-text="没有更多了" @load="onLoadList">
                     <van-swipe-cell v-for="(item,index) in list" :key="index">
                         <van-cell :border="false" :title="item.projectName" :value="item.projectCode"/>
                         <template slot="right" v-if="projectManagement || item.creatorId == user.id">
@@ -294,10 +294,8 @@
                 this.getProject()
             },
             onLoadList() {
-                console.log('出发没')
                 if(this.total <= this.list.length) {
-                    this.$toast('已全部加载完成');
-                    this.upFinished = false
+                    this.upFinished = true
                     this.isUpLoading = false
                     return
                 }