diff --git a/pages/home/index.vue b/pages/home/index.vue index 6e6bb90..5b7f780 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -419,12 +419,14 @@ export default { .select("#tttop") .boundingClientRect((data) => { console.log("data", data); - if (data.top <= 0) { - that.toTop = true; - that.showToTop = true; - } else { - that.toTop = false; - that.showToTop = false; + if(data){ + if (data.top <= 0) { + that.toTop = true; + that.showToTop = true; + } else { + that.toTop = false; + that.showToTop = false; + } } // domTopInfo.value[id] = data.top; // scrollTop.value = data.top - 200; @@ -443,9 +445,7 @@ export default { reachBottom() { let that = this; console.log("onReachBottom", that.query.isFinish); - this.G.isLogin(); - if (this.G.isLogin()) { - console.log("that.query.size", that.query.size); + if(uni.getStorageSync("apply-token")){ if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) { that.query.page++; that.getList("concat");