31 lines
740 B
Vue
31 lines
740 B
Vue
<template>
|
|
<view>
|
|
<productsByThumb ref="productsByThumb" :reportPageSize="6" @getThumbLength="getThumbLength"></productsByThumb>
|
|
<view style="font-size: 24rpx;color: #A3A3A3;text-align: center;padding: 26rpx 0;"
|
|
v-show="reachBottomLength===0||reachBottomLength<=4">
|
|
没有更多数据了</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
reachBottomLength: '',
|
|
reportPageSize: ''
|
|
}
|
|
},
|
|
onReachBottom() {
|
|
this.$refs.productsByThumb.pageSize = 4
|
|
this.$refs.productsByThumb.pageNum++
|
|
this.$refs.productsByThumb.getProductsByThumb()
|
|
},
|
|
methods: {
|
|
//获取按上架时间排列的产品列表length
|
|
getThumbLength(e) {
|
|
this.reachBottomLength = e
|
|
}
|
|
}
|
|
}
|
|
</script>
|