html
<div class="rightButtom" @scroll="groupScroll"></div>
js
groupScroll () {
this.$nextTick(() => {
var dom = document.querySelectorAll('.rightButtom')[0]
const scrollTop = dom.scrollTop
const windowHeight = dom.clientHeight
const scrollHeight = dom.scrollHeight
if (scrollHeight - (scrollTop + windowHeight) <= 0) {
// 这里开始写滚动到底部的加载事件
}
})
},