litian
2024-09-12 bbba5d26e9e26c910ed337dcb65f462752ee6dce
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);
      }
    }
  },
@@ -682,4 +686,10 @@
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  onShareTimeline() {}
});