pageNum -> current
This commit is contained in:
@@ -127,7 +127,7 @@ export default {
|
|||||||
let listHeight = clientHeight - headerHeight // list高度
|
let listHeight = clientHeight - headerHeight // list高度
|
||||||
if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) {
|
if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) {
|
||||||
this.isFirstScroll = false
|
this.isFirstScroll = false
|
||||||
this.pageNum += 1
|
this.queryList.current += 1
|
||||||
if (this.isOver) {
|
if (this.isOver) {
|
||||||
this.isOver = !this.isOver
|
this.isOver = !this.isOver
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default {
|
|||||||
let listHeight = clientHeight - headerHeight // list高度
|
let listHeight = clientHeight - headerHeight // list高度
|
||||||
if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) {
|
if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) {
|
||||||
this.isFirstScroll = false
|
this.isFirstScroll = false
|
||||||
this.pageNum += 1
|
this.queryList.current += 1
|
||||||
if (this.isOver) {
|
if (this.isOver) {
|
||||||
this.isOver = !this.isOver
|
this.isOver = !this.isOver
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
|
|||||||
Reference in New Issue
Block a user