diff --git a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/TradingDateInfo.js b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/TradingDateInfo.js index 068ae3d2..add48e52 100644 --- a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/TradingDateInfo.js +++ b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/TradingDateInfo.js @@ -3,7 +3,6 @@ import React from 'react'; import { - Box, HStack, Text, useColorModeValue, @@ -18,8 +17,6 @@ import moment from 'moment'; * @param {string|Object} props.eventTime - 事件发生时间 */ const TradingDateInfo = ({ effectiveTradingDate, eventTime }) => { - const sectionBg = useColorModeValue('gray.50', 'gray.750'); - const headingColor = useColorModeValue('gray.700', 'gray.200'); const stockCountColor = useColorModeValue('gray.500', 'gray.400'); if (!effectiveTradingDate) { @@ -27,19 +24,17 @@ const TradingDateInfo = ({ effectiveTradingDate, eventTime }) => { } return ( - - - - - 涨跌幅数据日期:{effectiveTradingDate} - {eventTime && effectiveTradingDate !== moment(eventTime).format('YYYY-MM-DD') && ( - - (事件发生于 {typeof eventTime === 'object' ? moment(eventTime).format('YYYY-MM-DD HH:mm') : moment(eventTime).format('YYYY-MM-DD HH:mm')},显示下一交易日数据) - - )} - - - + + + + 涨跌幅数据:{effectiveTradingDate} + {eventTime && effectiveTradingDate !== moment(eventTime).format('YYYY-MM-DD') && ( + + (事件发生于 {typeof eventTime === 'object' ? moment(eventTime).format('YYYY-MM-DD HH:mm') : moment(eventTime).format('YYYY-MM-DD HH:mm')},显示下一交易日数据) + + )} + + ); }; diff --git a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js index f0f80c5e..1250b17e 100644 --- a/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js +++ b/src/views/Community/components/DynamicNewsDetail/RelatedConceptsSection/index.js @@ -204,9 +204,16 @@ const RelatedConceptsSection = ({ eventTitle, effectiveTradingDate, eventTime }) {/* 标题栏 */} - - 相关概念 - + + + 相关概念 + + {/* 交易日期信息 */} + +