This commit is contained in:
xiaozhiyong
2023-05-10 17:42:53 +08:00
parent a63dba10a2
commit 4c55408455
5 changed files with 189 additions and 26 deletions

View File

@@ -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);
})
},