首页滚动、单体电池滚动
This commit is contained in:
@ -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开始搜索
|
||||
|
||||
Reference in New Issue
Block a user