From 51ad1f2614bc1f976aad98254649bb3c207332ee Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 11 九月 2024 16:50:35 +0800
Subject: [PATCH] 转换树结构方法优化

---
 pages/home/home.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index 1b2f624..3f7f267 100644
--- a/pages/home/home.js
+++ b/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);
       }
     }
   },

--
Gitblit v1.9.1