From 1e3df0c0c07efc22b4b7baaa92728eb3ba917b80 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Fri, 19 Jun 2026 07:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E5=8D=A1=E7=89=87=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listings/components/ListingCard.vue | 151 +++++++++++++----- 1 file changed, 107 insertions(+), 44 deletions(-) diff --git a/frontend/src/features/listings/components/ListingCard.vue b/frontend/src/features/listings/components/ListingCard.vue index 2b86b59..196ff83 100644 --- a/frontend/src/features/listings/components/ListingCard.vue +++ b/frontend/src/features/listings/components/ListingCard.vue @@ -36,6 +36,12 @@ const skinSummaryText = computed(() => ) const chipItems = computed(() => getListingChips(props.listing)) const resourceItems = computed(() => getListingResources(props.listing)) +const resourceSummaryText = computed(() => + resourceItems.value + .map(resource => `${resource.label} ${formatResourceQuantity(resource)}`) + .join('、') +) +const hasDetailLines = computed(() => skinGroups.value.length > 0 || resourceItems.value.length > 0) const rentalDuration = computed(() => formatEstimatedRentalDuration(props.listing)) const accessTags = computed(() => [getServerRegion(props.listing), getLoginMethod(props.listing)] @@ -75,7 +81,11 @@ function formatStatNumber(value: number) {