feat(listing): 展示本人人脸信息

This commit is contained in:
yml
2026-11-11 17:02:03 +08:00
parent c960a5caef
commit a5601eb76c
13 changed files with 182 additions and 12 deletions
@@ -758,6 +758,16 @@
color: #b91c1c;
}
.spec-item.face-owner-warning {
border-color: #fca5a5;
background: #fef2f2;
}
.spec-item.face-owner-warning .spec-label,
.spec-item.face-owner-warning .spec-val {
color: #b91c1c;
}
.copyable-val {
display: flex;
align-items: center;
@@ -51,11 +51,13 @@ import {
formatListingCode,
formatHafCoinM,
getCoinWan,
getFaceOwnerText,
getListingConsumablePrice,
getListingResources,
getOnlineTimeText,
getResourceQuantity,
getSkinNames,
isNonOwnFace,
readAssetNumber,
readAssetString,
} from '@/shared/utils/listingDisplay'
@@ -1388,6 +1390,13 @@ async function handleScreenshotSaved(payload: { oldUrl: string; newUrl: string }
{{ assetText(selectedListing, 'load_level') }}
</strong>
</div>
<div
class="spec-item"
:class="{ 'face-owner-warning': isNonOwnFace(selectedListing) }"
>
<span class="spec-label">是否本人人脸</span>
<strong class="spec-val">{{ getFaceOwnerText(selectedListing) }}</strong>
</div>
<div
class="spec-item spec-item--full"
:class="{ 'ban-warning': hasBanRecord(selectedListing) }"
@@ -23,6 +23,7 @@ import {
formatRatio,
getCoinWan,
getDailyLoss,
getFaceOwnerText,
getListingRentPrice,
getResourceQuantity,
getSkinGroup,
@@ -150,6 +151,7 @@ const screenshotColumns = [
width: 420,
read: (row: Listing) => characterAndWeaponSkinText(row),
},
{ label: '人脸', width: 60, read: (row: Listing) => faceOwnerText(row) },
{ label: '全英雄', width: 74, read: (row: Listing) => allHeroText(row) },
{ label: '号主备注', width: 160, read: (row: Listing) => ownerRemarkText(row) },
{ label: '租客纯币价格', width: 105, read: (row: Listing) => renterPureCoinPriceText(row) },
@@ -607,6 +609,10 @@ function ownerRemarkText(row: Listing) {
return remark || '-'
}
function faceOwnerText(row: Listing) {
return getFaceOwnerText(row)
}
/** 全英雄为发布必填项;老数据缺失时显示占位符。 */
function allHeroText(row: Listing) {
const value = assetText(row, 'all_hero')
@@ -996,6 +1002,13 @@ function formatQuantity(value: number) {
{{ characterAndWeaponSkinText(row) }}
</template>
</el-table-column>
<el-table-column label="人脸" width="60">
<template #default="{ row }">
<span :class="{ 'face-owner-no': faceOwnerText(row) === '否' }">
{{ faceOwnerText(row) }}
</span>
</template>
</el-table-column>
<el-table-column label="全英雄" width="74">
<template #default="{ row }">{{ allHeroText(row) }}</template>
</el-table-column>