diff --git a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/ConceptStockItem.js b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/ConceptStockItem.js index 9268b53b..1321d6ca 100644 --- a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/ConceptStockItem.js +++ b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/ConceptStockItem.js @@ -28,12 +28,26 @@ const ConceptStockItem = ({ stock }) => { const stockChangeColor = stockChangePct > 0 ? 'red' : stockChangePct < 0 ? 'green' : 'gray'; const stockChangeSymbol = stockChangePct > 0 ? '+' : ''; + // 处理股票详情跳转 + const handleStockClick = (e) => { + e.stopPropagation(); // 阻止事件冒泡到概念卡片 + const cleanCode = stock.stock_code.replace(/\.(SZ|SH)$/i, ''); + window.open(`https://valuefrontier.cn/company?scode=${cleanCode}`, '_blank'); + }; + return ( diff --git a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js index 6d95bcfd..f0355d7f 100644 --- a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js +++ b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js @@ -62,8 +62,8 @@ const RelatedConceptsSection = ({ keywords, effectiveTradingDate, eventTime }) = * @param {Object} concept - 概念对象 */ const handleConceptClick = (concept) => { - // 跳转到概念详情页 - navigate(`/concept/${concept.name}`); + // 跳转到概念中心,并搜索该概念 + navigate(`/concepts?q=${encodeURIComponent(concept.name)}`); }; return (