|
|
@@ -407,7 +407,7 @@ export default {
|
|
|
},
|
|
|
getFirstList() {
|
|
|
let params = {
|
|
|
- limit: 8,
|
|
|
+ limit: 16,
|
|
|
page: this.page,
|
|
|
name: this.goodsName,
|
|
|
productAttribute: this.productAttribute,
|
|
|
@@ -488,7 +488,7 @@ export default {
|
|
|
var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
|
//滚动条到底部的条件
|
|
|
console.log("距顶部---" + scrollTop + "可视区高度---" + windowHeight + "滚动条总高度---" + scrollHeight);
|
|
|
- if (scrollHeight - (scrollTop + windowHeight) < 1) {
|
|
|
+ if (scrollHeight - (scrollTop + windowHeight) < 500) {
|
|
|
if (this.page > this.pages) {
|
|
|
return
|
|
|
} else {
|
|
|
@@ -498,7 +498,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- window.addEventListener('scroll', debounce(this.handleScroll,500));
|
|
|
+ window.addEventListener('scroll', debounce(this.handleScroll,100));
|
|
|
},
|
|
|
destroyed() {
|
|
|
console.log('lalalal')
|