style(frontend): 执行 prettier 规范格式化并移除未使用变量
This commit is contained in:
@@ -230,10 +230,7 @@ const totalSkinCount = computed(() => {
|
||||
const secondaryChips = computed(() => {
|
||||
if (!listing.value) return []
|
||||
return getListingChips(listing.value).filter(
|
||||
chip =>
|
||||
chip.label !== '哈夫币' &&
|
||||
chip.label !== '保险格数' &&
|
||||
chip.label !== 'AWM'
|
||||
chip => chip.label !== '哈夫币' && chip.label !== '保险格数' && chip.label !== 'AWM'
|
||||
)
|
||||
})
|
||||
|
||||
@@ -267,7 +264,9 @@ const resourceItems = computed(() => {
|
||||
|
||||
function formatResourceQuantity(resource: ListingDisplayResource) {
|
||||
const suffix = resource.key === 'awmAmmo' ? '发' : ''
|
||||
const val = Number.isInteger(resource.quantity) ? String(resource.quantity) : resource.quantity.toFixed(1)
|
||||
const val = Number.isInteger(resource.quantity)
|
||||
? String(resource.quantity)
|
||||
: resource.quantity.toFixed(1)
|
||||
return `${val}${suffix}`
|
||||
}
|
||||
|
||||
@@ -419,7 +418,9 @@ function goBack() {
|
||||
|
||||
<div class="safe-notice-strip">
|
||||
<van-icon name="shield-o" class="safe-icon" :size="16" />
|
||||
<span class="safe-text">平台官方担保:下单后请严格按照平台交付流程确认收号与归还,切勿脱离平台私下交易。</span>
|
||||
<span class="safe-text"
|
||||
>平台官方担保:下单后请严格按照平台交付流程确认收号与归还,切勿脱离平台私下交易。</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -431,12 +432,22 @@ function goBack() {
|
||||
<section class="detail-card header-card">
|
||||
<div class="header-meta-row">
|
||||
<div class="meta-tags-wrap">
|
||||
<button class="code-badge-btn" type="button" @click="copyListingCode" title="点击复制商品编号">
|
||||
<button
|
||||
class="code-badge-btn"
|
||||
type="button"
|
||||
@click="copyListingCode"
|
||||
title="点击复制商品编号"
|
||||
>
|
||||
<span>{{ formatListingCode(listing) }}</span>
|
||||
<el-icon :size="12"><DocumentCopy /></el-icon>
|
||||
</button>
|
||||
|
||||
<span v-for="tag in accessTags" :key="tag.label" class="platform-pill" :class="tag.tone">
|
||||
<span
|
||||
v-for="tag in accessTags"
|
||||
:key="tag.label"
|
||||
class="platform-pill"
|
||||
:class="tag.tone"
|
||||
>
|
||||
<van-icon :name="tag.icon" :size="13" />
|
||||
<span>{{ tag.label }}</span>
|
||||
</span>
|
||||
@@ -482,15 +493,13 @@ function goBack() {
|
||||
</div>
|
||||
|
||||
<!-- 保险格数 -->
|
||||
<div
|
||||
class="asset-tile slot-tile"
|
||||
:class="{ 'top-insurance': isTopTierInsuranceSlot }"
|
||||
>
|
||||
<div class="asset-tile slot-tile" :class="{ 'top-insurance': isTopTierInsuranceSlot }">
|
||||
<span class="tile-label">安全箱格数</span>
|
||||
<strong
|
||||
class="tile-value"
|
||||
:class="isTopTierInsuranceSlot ? 'text-orange' : 'text-slate'"
|
||||
>{{ insuranceSlot }}</strong>
|
||||
>{{ insuranceSlot }}</strong
|
||||
>
|
||||
</div>
|
||||
|
||||
<!-- 折算币比 -->
|
||||
@@ -573,7 +582,9 @@ function goBack() {
|
||||
<div class="section-title-bar">
|
||||
<div class="title-left">
|
||||
<h2>账号核心档案</h2>
|
||||
<span class="title-tip">{{ formatGameName(listing.game_name, '三角洲行动') }} 资产详细规格</span>
|
||||
<span class="title-tip"
|
||||
>{{ formatGameName(listing.game_name, '三角洲行动') }} 资产详细规格</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -661,7 +672,9 @@ function goBack() {
|
||||
</div>
|
||||
<div class="seller-note-box">
|
||||
<van-icon name="chat-o" :size="18" class="note-quote-icon" />
|
||||
<p class="note-content">{{ listing.description || '号主暂未填写特殊交接要求,可正常直接下单租用。' }}</p>
|
||||
<p class="note-content">
|
||||
{{ listing.description || '号主暂未填写特殊交接要求,可正常直接下单租用。' }}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -762,7 +775,11 @@ function goBack() {
|
||||
<small class="dep-sub">归还验收无损自动原路退还</small>
|
||||
</div>
|
||||
<strong class="dep-val">
|
||||
{{ listing.deposit_amount_cent > 0 ? `¥${formatCent(listing.deposit_amount_cent)}` : '免押金' }}
|
||||
{{
|
||||
listing.deposit_amount_cent > 0
|
||||
? `¥${formatCent(listing.deposit_amount_cent)}`
|
||||
: '免押金'
|
||||
}}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
@@ -771,7 +788,9 @@ function goBack() {
|
||||
<div class="order-quick-summary">
|
||||
<div class="summary-item">
|
||||
<span class="s-label">区服方式</span>
|
||||
<strong class="s-val">{{ getServerRegion(listing) }} · {{ getLoginMethod(listing) }}</strong>
|
||||
<strong class="s-val"
|
||||
>{{ getServerRegion(listing) }} · {{ getLoginMethod(listing) }}</strong
|
||||
>
|
||||
</div>
|
||||
<div class="summary-item">
|
||||
<span class="s-label">预计可租</span>
|
||||
|
||||
Reference in New Issue
Block a user