修复前端金额展示并整理依赖
This commit is contained in:
@@ -580,7 +580,9 @@ function selectDailyLoss(value: string | number) {
|
||||
</div>
|
||||
<div class="price-cell">
|
||||
<span>纯币基础价</span>
|
||||
<strong>{{ calculatedCoinBasePrice ? `¥${formatMoney(calculatedCoinBasePrice)}` : '--' }}</strong>
|
||||
<strong>{{
|
||||
calculatedCoinBasePrice ? `¥${formatMoney(calculatedCoinBasePrice)}` : '--'
|
||||
}}</strong>
|
||||
</div>
|
||||
<div class="price-cell">
|
||||
<span>额外消耗品</span>
|
||||
@@ -588,7 +590,9 @@ function selectDailyLoss(value: string | number) {
|
||||
</div>
|
||||
<div class="price-cell accent">
|
||||
<span>发布价格</span>
|
||||
<strong>{{ calculatedSellerPrice ? `¥${formatMoney(calculatedSellerPrice)}` : '--' }}</strong>
|
||||
<strong>{{
|
||||
calculatedSellerPrice ? `¥${formatMoney(calculatedSellerPrice)}` : '--'
|
||||
}}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -608,13 +612,17 @@ function selectDailyLoss(value: string | number) {
|
||||
<div class="summary-panel">
|
||||
<div class="summary-main">
|
||||
<span>卖家发布价格</span>
|
||||
<strong>{{ calculatedSellerPrice ? `¥${formatMoney(calculatedSellerPrice)}` : '--' }}</strong>
|
||||
<strong>{{
|
||||
calculatedSellerPrice ? `¥${formatMoney(calculatedSellerPrice)}` : '--'
|
||||
}}</strong>
|
||||
</div>
|
||||
<div class="summary-breakdown">
|
||||
<div class="summary-breakdown-title">价格明细</div>
|
||||
<div>
|
||||
<span>纯币价格</span>
|
||||
<strong>{{ calculatedCoinBasePrice ? `¥${formatMoney(calculatedCoinBasePrice)}` : '--' }}</strong>
|
||||
<strong>{{
|
||||
calculatedCoinBasePrice ? `¥${formatMoney(calculatedCoinBasePrice)}` : '--'
|
||||
}}</strong>
|
||||
</div>
|
||||
<div>
|
||||
<span>额外物品价格</span>
|
||||
@@ -622,7 +630,9 @@ function selectDailyLoss(value: string | number) {
|
||||
</div>
|
||||
<div>
|
||||
<span>押金价格</span>
|
||||
<strong>{{ form.deposit_amount === '' ? '--' : `¥${formatMoney(Number(form.deposit_amount))}` }}</strong>
|
||||
<strong>{{
|
||||
form.deposit_amount === '' ? '--' : `¥${formatMoney(Number(form.deposit_amount))}`
|
||||
}}</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="summary-list">
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
submitListingReview,
|
||||
type Listing,
|
||||
} from '@/features/listings'
|
||||
import { formatCent, formatMoney, formatMoneyWithSymbol } from '@/shared/utils/money'
|
||||
import { formatCent, formatMoneyWithSymbol } from '@/shared/utils/money'
|
||||
import { listingReviewStatusLabel, listingStatusLabel } from '@/utils/statusLabels'
|
||||
import { formatListingCode, getListingSellerPrice } from '@/utils/listingDisplay'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user