This commit is contained in:
魏啾
2024-04-30 18:27:43 +08:00
parent 25acfbeb91
commit 3b85017f91
24 changed files with 2846 additions and 108 deletions

View File

@@ -43,6 +43,8 @@
</view>
</view>
</view>
<image style="margin:32rpx auto;" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/nomore.png"
v-if="is_end" mode="aspectFill"></image>
<u-loadmore height='40' :status="form.status" iconSize='24' fontSize='24' />
</view>
</view>
@@ -68,6 +70,7 @@
],
towcontentclickindex: 0,
list: [],
is_end:false,
form: {
page: 1, //页数
size: 10, //页容量
@@ -110,6 +113,9 @@
})
if (res.data.pages < this.form.page) {
this.form.status = 'nomore'
if (res.data.pageNum == 1) {
this.is_end = true
}
return false;
} else {
this.form.status = 'loading';