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}