From 41feba7a8b9caee853cff8c1b161abbe2d765adf Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 4 Jun 2026 15:39:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=8D=E7=85=A7=E6=94=BB=E7=95=A5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/test-ParsedValueView-strict.mjs | 6 ++ scripts/test-longTextCard.mjs | 6 ++ .../ChatLongAnswer/ParsedValueView.vue | 57 +++++++++++++++++- .../styles/ParsedValueView.scss | 58 +++++++++++++++++++ src/utils/longTextCard.js | 12 ++++ 5 files changed, 136 insertions(+), 3 deletions(-) diff --git a/scripts/test-ParsedValueView-strict.mjs b/scripts/test-ParsedValueView-strict.mjs index 4e5d1d2..08fc6b5 100644 --- a/scripts/test-ParsedValueView-strict.mjs +++ b/scripts/test-ParsedValueView-strict.mjs @@ -43,11 +43,17 @@ for (const snippet of forbiddenCompatibilitySnippets) { const requiredStrictRenderingSnippets = [ "LONG_TEXT_KEYS.sceneImage", "LONG_TEXT_KEYS.commodityList", + "LONG_TEXT_KEYS.photoList", "commodity.commodity_id", "commodity.commodity_name", "commodity.commodity_price", "commodity.commodity_tag", "commodity.commodity_photo", + " 1", "formatListMarker(index)", diff --git a/scripts/test-longTextCard.mjs b/scripts/test-longTextCard.mjs index c56d4dc..ecd42b7 100644 --- a/scripts/test-longTextCard.mjs +++ b/scripts/test-longTextCard.mjs @@ -61,6 +61,12 @@ const expectedNewKeys = { pitfallSectionTitle: "pitfall_section_title", pitfallSectionItems: "pitfall_section_items", commodityList: "commodity_list", + photoSpotSectionTitle: "photo_spot_section_title", + photoSpotSectionItems: "photo_spot_section_items", + bestTimeSuggestion: "best_time_suggestion", + phoneSectionTitle: "phone_section_title", + phoneSectionItems: "phone_section_items", + photoList: "photo_list", }; for (const [keyName, keyValue] of Object.entries(expectedNewKeys)) { diff --git a/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue b/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue index 529e667..ed5b1f3 100644 --- a/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue +++ b/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue @@ -67,6 +67,38 @@ + +