From 161ff51b722bbe9e83b62bfc3db06d34ca723013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Sat, 11 Apr 2026 22:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E4=BA=A4=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/News.jsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/News.jsx b/frontend/src/pages/News.jsx index 65e4908..6a1b370 100644 --- a/frontend/src/pages/News.jsx +++ b/frontend/src/pages/News.jsx @@ -650,17 +650,24 @@ export default function News() {
{dealDetailItems.map((item, idx) => { const content = item.content || '' - const grade = content.includes('评级:') ? content.split('评级:')[1].split('\n')[0].trim() : '' + const grade = content.includes('评级:') ? content.split('评级:')[1].split('\n')[0].trim() : (item.grading_score || '') + const sizeMatch = content.match(/大小号:\s*(.+?)(?:\n|$)/) + const size = sizeMatch ? sizeMatch[1].trim() : '' + const platformMatch = content.match(/平台:\s*(.+?)(?:\n|$)/) + const platform = platformMatch ? platformMatch[1].trim() : '-' return (
-
{(item.title || '').split('-')[0]}
-
- {item.deal_date} | {item.category} | {item.packaging} - {grade && ` | ${grade}`} +
+ {(item.title || '').split('-')[0]} + {size && | {size}} + {grade && | {grade}} +
+
+ {item.deal_date} | {item.category} | {item.packaging} | {platform}