diff --git a/frontend/src/features/listings/components/ListingCard.vue b/frontend/src/features/listings/components/ListingCard.vue index ccde1c4..b3dbb6c 100644 --- a/frontend/src/features/listings/components/ListingCard.vue +++ b/frontend/src/features/listings/components/ListingCard.vue @@ -2,7 +2,6 @@ import { computed } from 'vue' import { RouterLink } from 'vue-router' import type { Listing } from '@/features/listings' -import AuthImage from '@/shared/components/business/AuthImage.vue' import { formatCent, formatMoney } from '@/shared/utils/money' import { formatEstimatedRentalDuration, @@ -23,7 +22,6 @@ import { formatHafCoinM, readAssetString, isTopTierInsurance, - getCoinScreenshotURL, type ListingDisplayResource, } from '@/shared/utils/listingDisplay' @@ -33,8 +31,8 @@ interface Props { const props = defineProps() -// 封面图片:仅展示纯币截图单张,避免 OSS 爆发高频请求错误 -const coverURL = computed(() => getCoinScreenshotURL(props.listing)) +// 封面图片:优先使用后端生成的公开缩略图(16KB秒开,免鉴权) +const coverURL = computed(() => props.listing.cover_url || props.listing.screenshot_urls?.[0] || '') // 基础元信息 const listingCode = computed(() => formatListingCode(props.listing)) @@ -102,15 +100,15 @@ function formatStatNumber(value: number) {