From 0375a599e25b7f27c57d8c00f801761d9cce8aa2 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期二, 05 三月 2024 18:12:17 +0800
Subject: [PATCH] revert: 阿斯顿

---
 pages/home/home.js |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index 108690b..250f062 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -4,6 +4,7 @@
 const app = getApp()
 Page({
   data: {
+    isWhite: false,
     backUrl: null,
     userInfo: {},
     tabList: [], //鐩綍
@@ -29,6 +30,7 @@
     this.getTabBar().init();
     this.loadHomePage();
     this.getBannerList()
+
   },
 
   onLoad(options) {
@@ -161,20 +163,8 @@
     })
     console.log('杞挱鍥�', this.data.bannerList);
   },
-  //鎼滅储
-  navToSearchPage() {
-    wx.navigateTo({ url: '/pages/goods/search/index' });
-  },
-  //杞挱鍥捐烦杞�
-  navToActivityDetail({ detail }) {
-    const data = this.data.bannerList[detail.index]
-    console.log('璺宠浆', data.link);
-    // const { index: promotionID = 0 } = detail || {};
-    // wx.navigateTo({
-    //   url: `/pages/promotion-detail/index?promotion_id=${promotionID}`,
-    // });
-  },
-  //鑾峰彇鐩綍
+
+
   loadHomePage() {
     wx.stopPullDownRefresh();
     this.setData({
@@ -406,6 +396,13 @@
         rankingList: res.datas
       })
     })
+  },
+
+  onPageScroll(e) {
+    this.setData({
+      isWhite: e.scrollTop > 50 ? true : false
+    })
+
   }
 
 });

--
Gitblit v1.9.1