From 10638e08064c90e5a8ecc969da72ec4f9e8353a2 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Mon, 13 Jul 2026 21:25:17 +0800 Subject: [PATCH] feat: add aigc record, video preview & custom recharge - create useAigcRecordStore to centralize current AIGC generation record state - add video media type support to ResultPreview component - update RecordCard to only display view button for completed tasks - implement custom recharge amount with input validation and 9999 max limit - refactor detail page to load record from Pinia store instead of mock data - clean up TemplateCarousel markup and remove unused badge styles - fix minor formatting and code style issues --- .../detail/components/ResultPreview/index.vue | 9 +- src/pages-aigc/detail/detail.vue | 107 ++++++++++++++---- .../components/TemplateCarousel/index.vue | 32 ++---- .../TemplateCarousel/styles/index.scss | 16 +-- .../components/CustomAmountCard/index.vue | 17 ++- src/pages-aigc/recharge/recharge.vue | 35 +++++- .../record/components/RecordCard/index.vue | 13 +-- src/pages-aigc/record/record.vue | 39 +++---- src/store/modules/aigcRecord.js | 15 +++ src/store/modules/index.js | 13 ++- 10 files changed, 184 insertions(+), 112 deletions(-) create mode 100644 src/store/modules/aigcRecord.js diff --git a/src/pages-aigc/detail/components/ResultPreview/index.vue b/src/pages-aigc/detail/components/ResultPreview/index.vue index 4b69b01..229f693 100644 --- a/src/pages-aigc/detail/components/ResultPreview/index.vue +++ b/src/pages-aigc/detail/components/ResultPreview/index.vue @@ -1,6 +1,13 @@