feat(listing): 展示保险后预计到手价

This commit is contained in:
yml2213
2026-11-04 21:36:13 +08:00
parent 12e9b6d0b2
commit 6355ca21b0
7 changed files with 222 additions and 3 deletions
@@ -33,6 +33,8 @@ const {
qualityOwnerSaleRatio,
minAcceleratedSaleRatio,
insuranceFeePercent,
calculatedInsuranceFee,
calculatedTakeHomePrice,
virtualAssetSaleAgreementChecked,
sellerAgreementChecked,
passwordAndDeviceConfirmed,
@@ -766,6 +768,32 @@ function selectDailyLoss(value: string | number) {
</em>
</button>
</div>
<div
class="take-home-preview"
:class="{ 'has-insurance': form.compensation_plan === 'insurance' }"
>
<div>
<span>卖家发布价格</span>
<strong>¥{{ formatMoney(calculatedSellerPrice) }}</strong>
</div>
<div>
<span v-if="form.compensation_plan === 'insurance'">
无忧租号保险({{ insuranceFeePercent.toFixed(1) }}%)
</span>
<span v-else>普通赔付</span>
<strong :class="{ 'is-deduction': form.compensation_plan === 'insurance' }">
{{
form.compensation_plan === 'insurance'
? `-¥${formatMoney(calculatedInsuranceFee)}`
: '¥0.0'
}}
</strong>
</div>
<div class="take-home-net">
<span>预计到手价格</span>
<strong>¥{{ formatMoney(calculatedTakeHomePrice) }}</strong>
</div>
</div>
<p class="coverage-note">
普通赔付覆盖封禁、追回、洗号等情况;无忧租号保险在此基础上增加账号市场价值保障。
</p>
@@ -786,13 +814,17 @@ function selectDailyLoss(value: string | number) {
<aside class="summary-column">
<div class="summary-panel">
<div class="summary-main">
<span>卖家发布价格</span>
<span>预计到手价格</span>
<strong>{{
calculatedSellerPrice ? `¥${formatMoney(calculatedSellerPrice)}` : '--'
calculatedTakeHomePrice ? `¥${formatMoney(calculatedTakeHomePrice)}` : '--'
}}</strong>
</div>
<div class="summary-breakdown">
<div class="summary-breakdown-title">价格明细</div>
<div>
<span>卖家发布价格</span>
<strong>¥{{ formatMoney(calculatedSellerPrice) }}</strong>
</div>
<div>
<span>纯币价格</span>
<strong>{{
@@ -803,6 +835,10 @@ function selectDailyLoss(value: string | number) {
<span>额外物品价格</span>
<strong>¥{{ formatMoney(calculatedConsumablePrice) }}</strong>
</div>
<div v-if="form.compensation_plan === 'insurance'">
<span>无忧租号保险({{ insuranceFeePercent.toFixed(1) }}%)</span>
<strong class="is-deduction">-¥{{ formatMoney(calculatedInsuranceFee) }}</strong>
</div>
<div>
<span>押金价格</span>
<strong>{{