feat(listings): 演示商品数据与哈夫币展示

This commit is contained in:
yml2213
2026-10-31 11:52:39 +08:00
parent cfafc21014
commit 5f9ad08347
8 changed files with 169 additions and 11 deletions
@@ -14,6 +14,7 @@ import {
type ListingFilterState,
} from '@/features/listings/ListingFilterPanel'
import { fetchListingPublishOptions } from '@/features/seller/options'
import { formatCoinM } from '@/shared/utils/format'
import type { Listing } from '@/shared/api/types'
const zoneTabs = [
@@ -104,7 +105,7 @@ function MobileListingCard({ item }: { item: Listing }) {
<div className="mobile-listing-card__tags">
<span>{item.server_region || '区服待定'}</span>
<span>{item.rank_level || '段位待定'}</span>
<span>哈夫币 {item.haf_coin_amount.toLocaleString()}</span>
<span>哈夫币 {formatCoinM(item.haf_coin_amount)}</span>
{specs.map(spec => (
<span key={spec}>{spec}</span>
))}