This commit is contained in:
liu
2026-07-02 00:52:34 +08:00
parent 85c83a1422
commit 2e22bc2226
+24 -22
View File
@@ -31,32 +31,34 @@ export default function PublishPopup({ visible, onClose, onSelect }: PublishPopu
round
rootPortal
onClose={onClose}
closeable
overlayStyle={{ backgroundColor: 'rgba(0,0,0,0.5)' }}
>
<View className='publish-popup'>
<View className='popup-header'>
<Text className='popup-title'></Text>
<Text className='popup-subtitle'></Text>
<View style={{ padding: '32rpx 24rpx 0', paddingBottom: '160rpx', background: '#f7f8fa' }}>
<View style={{ textAlign: 'center', marginBottom: '32rpx' }}>
<Text style={{ fontStyle: '36px', fontWeight: 600, color: '#1a1a1a', display: 'block' }}></Text>
<Text style={{ fontStyle: '26px', color: '#969799' }}></Text>
</View>
<View className='popup-grid'>
{PUBLISH_OPTIONS.map((option) => (
<View
key={option.id}
className='publish-card'
onClick={() => onSelect(option)}
>
<Text className='card-icon'>{option.icon}</Text>
<View className='card-info'>
<Text className='card-label'>{option.label}</Text>
<Text className='card-desc'>{option.desc}</Text>
</View>
{PUBLISH_OPTIONS.map((option) => (
<View
key={option.id}
style={{
display: 'flex',
alignItems: 'center',
backgroundColor: '#fff',
borderRadius: '16rpx',
padding: '28rpx 24rpx',
marginBottom: '20rpx',
boxShadow: '0 2px 12px rgba(0, 0, 0, 0.04)'
}}
onClick={() => onSelect(option)}
>
<Text style={{ fontSize: '48rpx', marginRight: '20rpx', flexShrink: 0 }}>{option.icon}</Text>
<View style={{ flex: 1 }}>
<Text style={{ display: 'block', fontSize: '32rpx', fontWeight: 500, color: '#1a1a1a', marginBottom: '4px' }}>{option.label}</Text>
<Text style={{ fontSize: '24rpx', color: '#969799' }}>{option.desc}</Text>
</View>
))}
</View>
<View className='popup-cancel' onClick={onClose}>
<Text className='cancel-text'></Text>
</View>
</View>
))}
</View>
</Popup>
)