update pay function

This commit is contained in:
2025-11-23 12:11:12 +08:00
parent 1ea001fa3d
commit 5857144180
2 changed files with 119 additions and 45 deletions

View File

@@ -819,7 +819,9 @@ const StockCard = ({ stock, idx }) => {
</ModalHeader>
<ModalCloseButton color="#eacd76" top={3} right={3} />
<ModalBody p={6} bg={useColorModeValue('white', 'gray.800')}>
<Box fontSize="md" color="#222" lineHeight={1.9} whiteSpace="pre-line" dangerouslySetInnerHTML={{ __html: (stock.summary || '').replace(/<br\s*\/?>(\s*)/g, '\n').replace(/\n{2,}/g, '\n').replace(/\n/g, '<br/>') }} />
<Box fontSize="md" color="#222" lineHeight={1.9} whiteSpace="pre-wrap">
{(stock.summary || '').replace(/<br\s*\/?>/gi, '\n')}
</Box>
</ModalBody>
<ModalFooter bg={useColorModeValue('white', 'gray.800')} justifyContent="center">
<Button onClick={onClose} colorScheme="yellow" borderRadius="md" px={8} fontWeight="bold">关闭</Button>