scrollBottom() {
//加载更多
var scrollTop =
document.documentElement.scrollTop || document.body.scrollTop;
//变量windowHeight是可视区的高度
var windowHeight =
document.documentElement.clientHeight || document.body.clientHeight;
//变量scrollHeight是滚动条的总高度
var scrollHeight =
document.documentElement.scrollHeight || document.body.scrollHeight;
scrollTop = parseInt(scrollTop)
//滚动条到底部的条件
if (scrollTop + windowHeight == scrollHeight && scrollTop > 100) {
if(!this.tag) return
//写后台加载数据的函数
this.pageSize += 1
this.getHistory(this.pageSize)
}
},