From 2407a9d941d5e4f0d5dd78ab5e018ab9540a90db Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Sat, 18 Jul 2026 15:30:06 +0800 Subject: [PATCH] refactor(aigc): update carousel and video components - rewrite template carousel from custom scroll to uni swiper - add video loading, error, and replay states to result preview - update template card styles and video/poster handling logic - clean up unused CSS vars and remove unnecessary min-height on detail page - fix video file regex and add video error recovery --- .../detail/components/ResultPreview/index.vue | 143 ++++++++++++++++- .../ResultPreview/styles/index.scss | 81 ++++++++++ src/pages-aigc/detail/styles/index.scss | 1 - .../home/components/TemplateCard/index.vue | 35 +++- .../components/TemplateCard/styles/index.scss | 42 +++-- .../components/TemplateCarousel/index.vue | 151 +++++++----------- .../TemplateCarousel/styles/index.scss | 34 ++-- 7 files changed, 361 insertions(+), 126 deletions(-) diff --git a/src/pages-aigc/detail/components/ResultPreview/index.vue b/src/pages-aigc/detail/components/ResultPreview/index.vue index a8930da..55614bc 100644 --- a/src/pages-aigc/detail/components/ResultPreview/index.vue +++ b/src/pages-aigc/detail/components/ResultPreview/index.vue @@ -2,30 +2,167 @@