pages/home/home.js
@@ -643,11 +643,15 @@ if (this.data.scoll) { if (e.detail.scrollTop < 20) { this.data.scoll = false // 避免频繁调用 setData if (this.data.isWhite) this.isChange(false); } } else { if (e.detail.scrollTop > 20) { this.data.scoll = true // 避免频繁调用 setData if (!this.data.isWhite) this.isChange(true); } }