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) {