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