首页滚动、单体电池滚动

This commit is contained in:
2025-08-05 17:26:18 +08:00
parent 4a2d3de48b
commit bc18edead5
3 changed files with 33 additions and 29 deletions

View File

@ -126,6 +126,14 @@
onPageScroll(e) {
this.pageScrollTop = e.scrollTop
},
onReachBottom() {
console.log('触底了')
if (this.list.length >= this.total) {
return console.log('数据已经加载完成')
}
this.pageNum += 1 //每次搜索从1开始搜索
this.getTableData()
},
methods: {
openSearch() {
this.$refs.searchPopup.open()
@ -146,11 +154,6 @@
deviceId
}, dataType)
},
onReachBottom() {
console.log('触底了')
this.pageNum += 1 //每次搜索从1开始搜索
this.getTableData()
},
// 搜索
onSearch() {
this.pageNum = 1 //每次搜索从1开始搜索