更新
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view style="flex:1;overflow: hidden;">
|
||||
<view v-if="!tableList.length"
|
||||
style="width: 100vw; height: 100%; display: flex;align-items: center;justify-content: center;">
|
||||
<image src="@/static/qx.png" style="width: 500rpx; height: 355rpx;"></image>
|
||||
</view>
|
||||
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'>
|
||||
<view class="container">
|
||||
<view class="item" v-for="item,index in tableList" :key="index"
|
||||
@@ -35,6 +39,9 @@
|
||||
paramter: {
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
sorted:{
|
||||
createTime:'desc'
|
||||
},
|
||||
params: {
|
||||
accountName: ''
|
||||
}
|
||||
@@ -58,6 +65,13 @@
|
||||
},
|
||||
getByPage() {
|
||||
serve.getByPage(this.paramter).then(res => {
|
||||
if (!res.data.list.length) {
|
||||
uni.showToast({
|
||||
title: '没有数据了哦~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.tableList = this.tableList.concat(res.data.list);
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user