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