|
|
@ -70,7 +70,7 @@ const BestSellers = (props: {onStickyChange?: (isSticky: boolean) => void}) => { |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
<View className={'py-3'}> |
|
|
|
<View className={'py-3'} style={{paddingTop: '0'}}> |
|
|
|
{/* Tabs粘性布局组件 */} |
|
|
|
<Sticky |
|
|
|
threshold={getSystemInfo()} |
|
|
@ -79,7 +79,8 @@ const BestSellers = (props: {onStickyChange?: (isSticky: boolean) => void}) => { |
|
|
|
zIndex: 999, |
|
|
|
backgroundColor: stickyStatus ? '#ffffff' : 'transparent', |
|
|
|
boxShadow: stickyStatus ? '0 2px 8px rgba(0,0,0,0.1)' : 'none', |
|
|
|
transition: 'all 0.3s ease' |
|
|
|
transition: 'all 0.3s ease', |
|
|
|
marginTop: stickyStatus ? '0' : '-12px' |
|
|
|
}} |
|
|
|
> |
|
|
|
<Tabs |
|
|
@ -90,7 +91,7 @@ const BestSellers = (props: {onStickyChange?: (isSticky: boolean) => void}) => { |
|
|
|
}} |
|
|
|
style={{ |
|
|
|
backgroundColor: 'transparent', |
|
|
|
paddingTop: stickyStatus ? '8px' : '0', |
|
|
|
paddingTop: stickyStatus ? '0' : '8px', |
|
|
|
paddingBottom: stickyStatus ? '8px' : '0', |
|
|
|
}} |
|
|
|
activeType="smile" |
|
|
|