@@ -910,6 +910,11 @@ const CompanyAnalysisComplete = ({ stockCode: propStockCode }) => {
const toast = useToast ( ) ;
const bgColor = useColorModeValue ( 'gray.50' , 'gray.900' ) ;
const cardBg = useColorModeValue ( 'white' , 'gray.800' ) ;
// 高亮区域颜色(修复:不能在 JSX 中调用 hooks)
const blueBg = useColorModeValue ( 'blue.50' , 'blue.900' ) ;
const greenBg = useColorModeValue ( 'green.50' , 'green.900' ) ;
const purpleBg = useColorModeValue ( 'purple.50' , 'purple.900' ) ;
const orangeBg = useColorModeValue ( 'orange.50' , 'orange.900' ) ;
const { isOpen : isAnnouncementOpen , onOpen : onAnnouncementOpen , onClose : onAnnouncementClose } = useDisclosure ( ) ;
const [ selectedAnnouncement , setSelectedAnnouncement ] = useState ( null ) ;
@@ -1374,7 +1379,7 @@ const CompanyAnalysisComplete = ({ stockCode: propStockCode }) => {
< GridItem colSpan = { { base : 2 , md : 1 } } >
< VStack align = "stretch" spacing = { 3 } >
< Text fontWeight = "bold" fontSize = "sm" color = "gray.600" > 投资亮点 < / T e x t >
< Box p = { 3 } bg = { useColorModeValue ( 'blue.50' , 'blue.900' ) } borderRadius = "md" >
< Box p = { 3 } bg = { blueBg } borderRadius = "md" >
< Text fontSize = "sm" whiteSpace = "pre-wrap" >
{ comprehensiveData . qualitative _analysis . core _positioning ? . investment _highlights || '暂无数据' }
< / T e x t >
@@ -1385,7 +1390,7 @@ const CompanyAnalysisComplete = ({ stockCode: propStockCode }) => {
< GridItem colSpan = { { base : 2 , md : 1 } } >
< VStack align = "stretch" spacing = { 3 } >
< Text fontWeight = "bold" fontSize = "sm" color = "gray.600" > 商业模式 < / T e x t >
< Box p = { 3 } bg = { useColorModeValue ( 'green.50' , 'green.900' ) } borderRadius = "md" >
< Box p = { 3 } bg = { greenBg } borderRadius = "md" >
< Text fontSize = "sm" whiteSpace = "pre-wrap" >
{ comprehensiveData . qualitative _analysis . core _positioning ? . business _model _desc || '暂无数据' }
< / T e x t >
@@ -1783,7 +1788,7 @@ const CompanyAnalysisComplete = ({ stockCode: propStockCode }) => {
< GridItem colSpan = { { base : 2 , md : 1 } } >
< VStack align = "stretch" spacing = { 3 } >
< Text fontWeight = "bold" fontSize = "sm" color = "gray.600" > 战略方向 < / T e x t >
< Box p = { 4 } bg = { useColorModeValue ( 'purple.50' , 'purple.900' ) } borderRadius = "md" >
< Box p = { 4 } bg = { purpleBg } borderRadius = "md" >
< Text fontSize = "sm" >
{ comprehensiveData . qualitative _analysis . strategy . strategy _description || '暂无数据' }
< / T e x t >
@@ -1794,7 +1799,7 @@ const CompanyAnalysisComplete = ({ stockCode: propStockCode }) => {
< GridItem colSpan = { { base : 2 , md : 1 } } >
< VStack align = "stretch" spacing = { 3 } >
< Text fontWeight = "bold" fontSize = "sm" color = "gray.600" > 战略举措 < / T e x t >
< Box p = { 4 } bg = { useColorModeValue ( 'orange.50' , 'orange.900' ) } borderRadius = "md" >
< Box p = { 4 } bg = { orangeBg } borderRadius = "md" >
< Text fontSize = "sm" >
{ comprehensiveData . qualitative _analysis . strategy . strategic _initiatives || '暂无数据' }
< / T e x t >