feat(listings): 订单和账号详情展示可租时长与每日消耗

租客在订单列表和详情标题能看到每个号的租期、消耗。账号详情把这两项拆成独立格子。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-10-05 16:32:08 +08:00
co-authored by Cursor
parent c559287ee4
commit f2060c19cf
18 changed files with 393 additions and 71 deletions
@@ -489,8 +489,8 @@ function goBack() {
</p>
</div>
<!-- 核心资产四大微卡(完全对齐首页) -->
<div class="core-assets-bar">
<!-- 核心资产:哈夫币、安全箱、币比、可租、消耗 -->
<div class="core-assets-bar" :class="{ 'has-ratio': ratioDisplay }">
<!-- 哈夫币 -->
<div class="asset-tile coin-tile">
<span class="tile-label">哈夫币资产</span>
@@ -513,13 +513,16 @@ function goBack() {
<strong class="tile-value text-amber">{{ ratioDisplay }}</strong>
</div>
<!-- 租期与日耗 -->
<div class="asset-tile rental-tile">
<span class="tile-label">租用与损耗</span>
<div class="tile-subvalues">
<span class="val-pill green">可租 {{ rentalDuration }}</span>
<span v-if="dailyLoss" class="val-pill warm">消耗 {{ dailyLoss }}/天</span>
</div>
<span class="tile-label">可租</span>
<strong class="tile-value text-green">{{ rentalDuration }}</strong>
</div>
<div class="asset-tile loss-tile">
<span class="tile-label">消耗</span>
<strong class="tile-value text-warm">{{
dailyLoss ? `${dailyLoss}/天` : '--'
}}</strong>
</div>
</div>
</section>