|
@@ -53,7 +53,8 @@
|
|
|
</u-grid>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-empty style="padding-top: 10vh;height: auto;" text="暂无数据" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
|
|
|
+ <u-empty style="padding-top: 10vh;height: auto;" :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
|
|
|
+ <view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
|
|
|
<u-loadmore bg-color="#f8f8f8" v-if="list.length < total || status == 'loading'" :status="status" class="loadmore" />
|
|
|
</scroll-view>
|
|
|
</swiper-item>
|
|
@@ -169,6 +170,7 @@
|
|
|
}
|
|
|
this.status = 'loading'
|
|
|
queryMyTask(params).then(res => {
|
|
|
+ console.log(res)
|
|
|
if(res.status == 200){
|
|
|
if(this.pageNo>1){
|
|
|
this.list = this.list.concat(res.data.list || [])
|
|
@@ -224,10 +226,15 @@
|
|
|
},
|
|
|
// scroll-view到底部加载更多
|
|
|
onreachBottom() {
|
|
|
+ console.log('onreachBottom')
|
|
|
if(this.list.length < this.total){
|
|
|
this.pageNo += 1
|
|
|
this.pageInit()
|
|
|
}else{
|
|
|
+ uni.showToast({
|
|
|
+ title: '已经到底了',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
this.status = "nomore"
|
|
|
}
|
|
|
},
|