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 @@