新增财务仪表盘并统一金额到角
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
import { fetchPostRentalNotice, type PostRentalNotice } from '@/features/orders/api/orders'
|
||||
import { formatDateMinute } from '@/utils/time'
|
||||
import { uploadFile } from '@/shared/api/files'
|
||||
import { formatMoney } from '@/shared/utils/money'
|
||||
|
||||
const session = useSessionStore()
|
||||
const router = useRouter()
|
||||
@@ -316,7 +317,7 @@ function resolveAvatarURL(url: string | undefined | null) {
|
||||
<div class="balance-row">
|
||||
<div class="balance-info">
|
||||
<span class="balance-label">账户可用余额(元)</span>
|
||||
<strong class="balance-value">¥{{ Math.round(Number(balance || 0)) }}</strong>
|
||||
<strong class="balance-value">¥{{ formatMoney(balance) }}</strong>
|
||||
</div>
|
||||
<button class="withdraw-btn" @click="handleWithdraw">提现</button>
|
||||
</div>
|
||||
@@ -417,7 +418,7 @@ function resolveAvatarURL(url: string | undefined | null) {
|
||||
<span class="ledger-time">{{ formatDateMinute(item.created_at) }}</span>
|
||||
</div>
|
||||
<div class="ledger-right" :class="item.direction === 'in' ? 'in-color' : 'out-color'">
|
||||
{{ item.direction === 'in' ? '+' : '-' }}¥{{ Math.round(Number(item.amount || 0)) }}
|
||||
{{ item.direction === 'in' ? '+' : '-' }}¥{{ formatMoney(item.amount) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user