{{ dayjs(news.publishTime).format('YYYY-MM-DD') }}
@@ -144,7 +156,7 @@
@@ -170,14 +182,52 @@
+
+
+
+
+ {{ currentNewsDetail.content }}
+
@@ -469,8 +599,9 @@ onMounted(async () => {
}
.selector-area {
- flex: 0 0 150px;
- text-align: right;
+ display: flex;
+ align-items: center;
+ gap: 10px;
}
.title {
@@ -803,4 +934,84 @@ onMounted(async () => {
margin-top: 5px;
font-size: 12px;
}
+
+/* 新闻详情弹窗样式 */
+.news-detail-dialog :deep(.el-dialog__header) {
+ padding: 15px 20px;
+ border-bottom: 1px solid #30363d;
+}
+
+.news-detail-dialog :deep(.el-dialog__title) {
+ font-size: 18px;
+ font-weight: bold;
+ color: #ffffff !important;
+ text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
+}
+
+.news-detail-dialog :deep(.el-dialog__body) {
+ padding: 20px;
+ color: #e6edf3;
+}
+
+
+.news-detail-header {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 15px;
+ padding-bottom: 10px;
+ border-bottom: 1px solid #30363d;
+ color: #8b949e;
+ font-size: 0.9em;
+}
+
+.news-detail-content {
+ line-height: 1.6;
+ white-space: pre-line;
+}
+
+/* 修改Element弹窗适应深色主题 */
+.stock-dashboard :deep(.el-dialog) {
+ background-color: #161b22;
+ border: 1px solid #30363d;
+ border-radius: 8px;
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
+}
+
+.stock-dashboard :deep(.el-dialog__headerbtn .el-dialog__close) {
+ color: #8b949e;
+}
+
+.stock-dashboard :deep(.el-dialog__headerbtn:hover .el-dialog__close) {
+ color: #58a6ff;
+}
+
+.return-button {
+ margin-left: 10px;
+ background-color: #58a6ff;
+ border-color: #58a6ff;
+ transition: all 0.3s;
+}
+
+.return-button:hover {
+ background-color: #388bfd;
+ border-color: #388bfd;
+ transform: translateY(-2px);
+ box-shadow: 0 2px 5px rgba(88, 166, 255, 0.4);
+}
+
+.user-money {
+ color: #e6edf3;
+ font-size: 14px;
+ margin-right: 15px;
+ padding: 4px 8px;
+ background-color: #21262d;
+ border-radius: 4px;
+ border: 1px solid #30363d;
+}
+
+.money-value {
+ font-weight: bold;
+ color: #7ee787;
+ margin-left: 4px;
+}