feat: add scroll top mask, unify page top spacing and docs
This commit is contained in:
@@ -7,6 +7,7 @@ import { useThemeContext } from '../../context/ThemeContext'
|
||||
import { useSafeArea } from '../../hooks/useSafeArea'
|
||||
import { useStatusBar } from '../../hooks/useStatusBar'
|
||||
import ThemedPageMeta from '../../components/ThemedPageMeta'
|
||||
import ScrollTopMask from '../../components/ScrollTopMask'
|
||||
import BottomActionBar from '../../components/BottomActionBar'
|
||||
|
||||
export default function CheckoutPage() {
|
||||
@@ -67,8 +68,9 @@ export default function CheckoutPage() {
|
||||
return (
|
||||
<View className={`theme-${resolvedTheme}`}>
|
||||
<ThemedPageMeta />
|
||||
<ScrollTopMask title="设计效果确认" targetSelector=".page-header" showBack />
|
||||
<View className='checkout-page'>
|
||||
<View className='page-header' style={{ paddingTop: `${safe.headerPaddingTop}px` }}>
|
||||
<View className='page-header' style={{ paddingTop: `${safe.statusBarHeight + 12}px` }}>
|
||||
<View className='page-header-inner'>
|
||||
<View className='back-btn' onTap={() => Taro.navigateBack()}>
|
||||
<Text className='back-arrow'>←</Text>
|
||||
@@ -94,9 +96,10 @@ export default function CheckoutPage() {
|
||||
return (
|
||||
<View className={`theme-${resolvedTheme}`}>
|
||||
<ThemedPageMeta />
|
||||
<ScrollTopMask title="设计效果确认" targetSelector=".page-header" showBack />
|
||||
<View className='checkout-page'>
|
||||
|
||||
<View className='page-header' style={{ paddingTop: `${safe.headerPaddingTop}px` }}>
|
||||
<View className='page-header' style={{ paddingTop: `${safe.statusBarHeight + 12}px` }}>
|
||||
<View className='page-header-inner'>
|
||||
<View className='back-btn' onTap={() => Taro.navigateBack()}>
|
||||
<Text className='back-arrow'>←</Text>
|
||||
|
||||
Reference in New Issue
Block a user