From bf76fa89c9adb5b471b025b8189164442ec9c294 Mon Sep 17 00:00:00 2001 From: zoujing Date: Wed, 29 Apr 2026 15:33:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5=E5=AF=B9=E6=8E=A5=20=E4=B8=8E?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Discovery/components/CardSwiper/index.vue | 10 +-- .../components/QuickQuestions/index.vue | 70 ++++++------------ src/pages/Discovery/index.vue | 71 ++++++++----------- 3 files changed, 59 insertions(+), 92 deletions(-) diff --git a/src/pages/Discovery/components/CardSwiper/index.vue b/src/pages/Discovery/components/CardSwiper/index.vue index ef87054..b93d107 100644 --- a/src/pages/Discovery/components/CardSwiper/index.vue +++ b/src/pages/Discovery/components/CardSwiper/index.vue @@ -18,7 +18,7 @@ > - + @@ -28,8 +28,8 @@ {{ slot.item.title }} - - {{ slot.item.desc }} + + {{ slot.item.subTitle }} @@ -58,7 +58,7 @@ const props = defineProps({ }, }); -const emit = defineEmits(["update:modelValue", "change", "card-click"]); +const emit = defineEmits(["update:modelValue", "change", "didSelectItem"]); const DURATION = 280; const CLICK_THRESHOLD = 8; @@ -407,7 +407,7 @@ const handleTouchCancel = () => { const handleCardTap = (slot) => { if (slot.role !== "current" || isDragging.value || isAnimating.value) return; - emit("card-click", slot.item, slot.index); + emit("didSelectItem", slot.item, slot.index); }; onBeforeUnmount(() => { diff --git a/src/pages/Discovery/components/QuickQuestions/index.vue b/src/pages/Discovery/components/QuickQuestions/index.vue index bc6bb08..83657dd 100644 --- a/src/pages/Discovery/components/QuickQuestions/index.vue +++ b/src/pages/Discovery/components/QuickQuestions/index.vue @@ -4,17 +4,17 @@ - + - - + + - - + + {{ item.title }} - + {{ item.subTitle }} @@ -27,60 +27,36 @@