diff --git a/src/pages/index/BestSellers.tsx b/src/pages/index/BestSellers.tsx index 1965f64..6abfef8 100644 --- a/src/pages/index/BestSellers.tsx +++ b/src/pages/index/BestSellers.tsx @@ -70,16 +70,17 @@ const BestSellers = (props: {onStickyChange?: (isSticky: boolean) => void}) => { return ( <> - + {/* Tabs粘性布局组件 */} - void}) => { }} style={{ backgroundColor: 'transparent', - paddingTop: stickyStatus ? '8px' : '0', + paddingTop: stickyStatus ? '0' : '8px', paddingBottom: stickyStatus ? '8px' : '0', }} activeType="smile" diff --git a/src/pages/index/Header.tsx b/src/pages/index/Header.tsx index 42d467b..ed3b418 100644 --- a/src/pages/index/Header.tsx +++ b/src/pages/index/Header.tsx @@ -173,14 +173,18 @@ const Header = (props: any) => { return ( <> - - {/*{!props.stickyStatus && }*/} + {/* 只在非吸顶状态下显示搜索框 */} + {!props.stickyStatus && } { }} left={