行业报告上方三个按钮的列表展示

This commit is contained in:
邓洁
2023-02-03 19:31:50 +08:00
parent ec3c5b8351
commit 4db15d21cf
6 changed files with 126 additions and 19 deletions

View File

@@ -1,6 +1,9 @@
<template>
<view>
<productsByTime></productsByTime>
<productsByTime ref="productsByTime" @getTimeLength="getTimeLength"></productsByTime>
<view style="font-size: 24rpx;color: #A3A3A3;text-align: center;padding: 26rpx 0;"
v-show="reachBottomLength===0">
没有更多数据了</view>
</view>
</template>
@@ -8,11 +11,22 @@
export default {
data() {
return {
reachBottomLength: ''
}
},
onReachBottom() {
this.$refs.productsByTime.pageNum++
this.$refs.productsByTime.getProductsByTime()
},
onLoad() {
this.$refs.productsByTime.pageSize = 2
this.$refs.productsByTime.getProductsByTime()
},
methods: {
//获取按上架时间排列的产品列表length
getTimeLength(e) {
this.reachBottomLength = e
}
}
}
</script>