diff --git a/src/pages/index/Banner.tsx b/src/pages/index/Banner.tsx index a019d1d..0d2a214 100644 --- a/src/pages/index/Banner.tsx +++ b/src/pages/index/Banner.tsx @@ -99,47 +99,40 @@ const MyPage = () => { {/* 左侧轮播图区域 */} - - - {carouselData && carouselData?.imageList?.map((img, index) => ( - - navTo(`${img.path}`)} - lazyLoad={false} - style={{ - height: `${carouselHeight}px`, - borderRadius: '4px', - pointerEvents: 'auto' - }} - /> - - ))} - - + {carouselData && carouselData?.imageList?.map((img, index) => ( + + navTo(`${img.path}`)} + lazyLoad={false} + style={{ + height: `${carouselHeight}px`, + borderRadius: '4px' + }} + /> + + ))} + {/* 右侧上下图片区域 - 从API获取数据 */} {/* 上层图片 - 使用今日热卖素材 */} - + 今日热卖 { {/* 下层图片 - 使用社区拼团素材 */} - + 走进社区 void}) => { - + {/* 今日主推 */} {tab1value == '0' && list?.map((item, index) => { return ( diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 7547bec..0d20808 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -14,7 +14,7 @@ import './index.scss' function Home() { // 吸顶状态 - const [stickyStatus, setStickyStatus] = useState(false) + // const [stickyStatus, setStickyStatus] = useState(false) // Tabs粘性状态 const [tabsStickyStatus, setTabsStickyStatus] = useState(false) @@ -23,7 +23,7 @@ function Home() { const userId = Taro.getStorageSync('UserId'); return { - title: '网宿小店 - 网宿软件', + title: '🏠 首页 🏠', path: userId ? `/pages/index/index?inviter=${userId}&source=share&t=${Date.now()}` : `/pages/index/index`, success: function () { console.log('首页分享成功'); @@ -81,11 +81,11 @@ function Home() { }); }; - const onSticky = (item: IArguments) => { - if(item){ - setStickyStatus(!stickyStatus) - } - } + // const onSticky = (item: IArguments) => { + // if(item){ + // setStickyStatus(!stickyStatus) + // } + // } // 处理Tabs粘性状态变化 const handleTabsStickyChange = (isSticky: boolean) => { @@ -165,7 +165,7 @@ function Home() { ) : (
)} - +