From 823632b6087b2d40810371a195de4d0de6fdae27 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Sun, 6 Sep 2026 20:36:25 +0800 Subject: [PATCH] =?UTF-8?q?revert(listings):=20=E9=A6=96=E9=A1=B5=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=81=A2=E5=A4=8D=E4=BD=BF=E7=94=A8=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=20img=20=E4=B8=8E=E5=85=AC=E5=BC=80=E7=BC=A9=E7=95=A5=E5=9B=BE?= =?UTF-8?q?=E9=93=BE=E8=B7=AF=20(16KB=E7=A7=92=E5=BC=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listings/components/ListingCard.vue | 34 +++++-------------- .../listings/views/ListingCollectionsView.vue | 11 +++--- .../listings/views/MobileHomeView.css | 14 -------- .../listings/views/MobileHomeView.vue | 12 +++---- frontend/src/shared/utils/listingDisplay.ts | 22 +----------- 5 files changed, 19 insertions(+), 74 deletions(-) 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) {