feat(listing): 展示本人人脸信息
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
formatRatio,
|
||||
getCoinWan,
|
||||
getDailyLoss,
|
||||
getFaceOwnerText,
|
||||
getListingConsumablePrice,
|
||||
getListingChips,
|
||||
getListingDisplayPrice,
|
||||
@@ -40,6 +41,7 @@ import {
|
||||
readAssetString,
|
||||
getRatioValue,
|
||||
isTopTierInsurance,
|
||||
isNonOwnFace,
|
||||
getScreenshotThumbURL,
|
||||
getScreenshotMediumURL,
|
||||
getScreenshotRawURL,
|
||||
@@ -138,6 +140,11 @@ const dailyLoss = computed(() => {
|
||||
return getDailyLoss(listing.value)
|
||||
})
|
||||
|
||||
const faceOwner = computed(() => {
|
||||
if (!listing.value) return '--'
|
||||
return getFaceOwnerText(listing.value)
|
||||
})
|
||||
|
||||
// 平台/区服特性徽标
|
||||
const accessTags = computed(() => {
|
||||
if (!listing.value) return []
|
||||
@@ -526,6 +533,14 @@ function goBack() {
|
||||
<strong class="tile-value text-amber">{{ ratioDisplay }}</strong>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="asset-tile face-tile"
|
||||
:class="{ 'is-non-owner': listing && isNonOwnFace(listing) }"
|
||||
>
|
||||
<span class="tile-label">是否本人人脸</span>
|
||||
<strong class="tile-value">{{ faceOwner }}</strong>
|
||||
</div>
|
||||
|
||||
<div class="asset-tile rental-tile">
|
||||
<span class="tile-label">可租</span>
|
||||
<strong class="tile-value text-green">{{ rentalDuration }}</strong>
|
||||
|
||||
Reference in New Issue
Block a user