diff --git a/frontend/mining-admin-web/src/app/(dashboard)/reports/page.tsx b/frontend/mining-admin-web/src/app/(dashboard)/reports/page.tsx index a9347cb9..e77e376a 100644 --- a/frontend/mining-admin-web/src/app/(dashboard)/reports/page.tsx +++ b/frontend/mining-admin-web/src/app/(dashboard)/reports/page.tsx @@ -125,7 +125,7 @@ export default function ReportsPage() { {formatDecimal(report.dailyDistributed, 2)} {formatDecimal(report.dailyBurned, 2)} - {formatDecimal(report.closePrice, 8)} + {formatDecimal(report.closePrice, 7)} {formatCompactNumber(report.dailyVolume)} )) diff --git a/frontend/mining-admin-web/src/features/dashboard/components/price-overview.tsx b/frontend/mining-admin-web/src/features/dashboard/components/price-overview.tsx index 325a5b8b..486b875d 100644 --- a/frontend/mining-admin-web/src/features/dashboard/components/price-overview.tsx +++ b/frontend/mining-admin-web/src/features/dashboard/components/price-overview.tsx @@ -21,7 +21,7 @@ export function PriceOverview() {

当前价格

- {formatDecimal(stats?.currentPrice, 8)} + {formatDecimal(stats?.currentPrice, 7)} 绿积分/股
diff --git a/frontend/mining-admin-web/src/features/dashboard/components/stats-cards.tsx b/frontend/mining-admin-web/src/features/dashboard/components/stats-cards.tsx index 67f9660e..7778aca3 100644 --- a/frontend/mining-admin-web/src/features/dashboard/components/stats-cards.tsx +++ b/frontend/mining-admin-web/src/features/dashboard/components/stats-cards.tsx @@ -38,7 +38,7 @@ export function StatsCards() { const cards = [ { title: '当前价格', - value: formatDecimal(stats?.currentPrice, 8), + value: formatDecimal(stats?.currentPrice, 7), unit: '绿积分/股', icon: isPriceUp ? TrendingUp : TrendingDown, iconColor: isPriceUp ? 'text-green-500' : 'text-red-500', diff --git a/frontend/mining-admin-web/src/features/users/components/mining-records-list.tsx b/frontend/mining-admin-web/src/features/users/components/mining-records-list.tsx index 4dc622ef..b6cd087a 100644 --- a/frontend/mining-admin-web/src/features/users/components/mining-records-list.tsx +++ b/frontend/mining-admin-web/src/features/users/components/mining-records-list.tsx @@ -58,7 +58,7 @@ export function MiningRecordsList({ accountSequence }: MiningRecordsListProps) { +{formatDecimal(record.shareAmount, 4)} - {formatDecimal(record.priceSnapshot, 8)} + {formatDecimal(record.priceSnapshot, 7)} {formatDateTime(record.createdAt)} )) diff --git a/frontend/mining-admin-web/src/features/users/components/trade-orders-list.tsx b/frontend/mining-admin-web/src/features/users/components/trade-orders-list.tsx index 1b5d6719..5c90977d 100644 --- a/frontend/mining-admin-web/src/features/users/components/trade-orders-list.tsx +++ b/frontend/mining-admin-web/src/features/users/components/trade-orders-list.tsx @@ -79,7 +79,7 @@ export function TradeOrdersList({ accountSequence }: TradeOrdersListProps) { {status.label} - {formatDecimal(order.price, 8)} + {formatDecimal(order.price, 7)} {formatDecimal(order.quantity, 4)} {formatDecimal(order.filledQuantity, 4)} {formatDateTime(order.createdAt)} diff --git a/frontend/mining-admin-web/src/lib/utils/format.ts b/frontend/mining-admin-web/src/lib/utils/format.ts index fb59ca6f..5965a9e6 100644 --- a/frontend/mining-admin-web/src/lib/utils/format.ts +++ b/frontend/mining-admin-web/src/lib/utils/format.ts @@ -40,7 +40,7 @@ export function formatCompactNumber(value: number | string | undefined | null): } export function formatPrice(value: string | number | undefined | null): string { - return formatDecimal(value, 8); + return formatDecimal(value, 7); } export function formatShareAmount(value: string | number | undefined | null): string {