详情页面kd 展示,发布时间必填

This commit is contained in:
yml2213
2026-06-12 21:24:13 +08:00
parent f6ea3e29a6
commit 7c2f5e34c3
11 changed files with 148 additions and 5 deletions
@@ -41,6 +41,11 @@ export function formatHafCoinM(amountWan: number) {
return `${Number.isInteger(rounded) ? rounded : rounded.toFixed(1)}M`
}
export function formatAssetNumber(value: number) {
const rounded = Math.round(value * 10) / 10
return Number.isInteger(rounded) ? String(rounded) : rounded.toFixed(1)
}
export function getListingDisplayPrice(item: Listing) {
return centToYuan(item.price_cent)
}