fix: 统一追溯码并修正天河链存证跳转
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
"repeatDesc": "This code has been activated. Please note the query count.",
|
||||
"queryCount": "Queried {n} times",
|
||||
"firstActivatedAt": "First activated: {t}",
|
||||
"queriedAt": "This query: {t}",
|
||||
"code": "Trace Code"
|
||||
"queriedAt": "This query: {t}"
|
||||
},
|
||||
"section": {
|
||||
"basic": "Basic Info",
|
||||
@@ -25,7 +24,6 @@
|
||||
},
|
||||
"chain": {
|
||||
"archiveNo": "Archive No.",
|
||||
"code": "Trace Code",
|
||||
"hash": "Tx Hash",
|
||||
"dataHash": "Data Hash",
|
||||
"tokenId": "Token ID",
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
"repeatDesc": "该防伪码已激活,请留意查询次数是否异常。",
|
||||
"queryCount": "累计查询 {n} 次",
|
||||
"firstActivatedAt": "首次激活:{t}",
|
||||
"queriedAt": "本次查询:{t}",
|
||||
"code": "唯一追溯码"
|
||||
"queriedAt": "本次查询:{t}"
|
||||
},
|
||||
"section": {
|
||||
"basic": "基础信息",
|
||||
@@ -25,7 +24,6 @@
|
||||
},
|
||||
"chain": {
|
||||
"archiveNo": "档案编号",
|
||||
"code": "唯一追溯码",
|
||||
"hash": "交易哈希",
|
||||
"dataHash": "数据哈希",
|
||||
"tokenId": "数字藏品编号",
|
||||
|
||||
@@ -175,15 +175,6 @@
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="data.queriedAt" class="anti-meta">{{ t('anti.queriedAt', { t: fmt(data.queriedAt) }) }}</div>
|
||||
<div v-if="data.code" class="anti-code">
|
||||
{{ t('anti.code') }}:<span class="mono">{{ data.code }}</span>
|
||||
<button class="icon-copy anti-copy" :aria-label="t('chain.copy')" :title="t('chain.copy')" @click="copy(data.code)">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true">
|
||||
<rect x="9" y="9" width="11" height="11" rx="2" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
<path d="M5 15V5a2 2 0 0 1 2-2h8" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -303,16 +294,6 @@
|
||||
<span class="chain-k">{{ t('chain.archiveNo') }}</span>
|
||||
<span class="chain-v mono">{{ data.artwork.archiveNo }}</span>
|
||||
</div>
|
||||
<div class="chain-row">
|
||||
<span class="chain-k">{{ t('chain.code') }}</span>
|
||||
<span class="chain-v mono">{{ data.code || '-' }}</span>
|
||||
<button v-if="data.code" class="icon-copy" :aria-label="t('chain.copy')" :title="t('chain.copy')" @click="copy(data.code)">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" aria-hidden="true">
|
||||
<rect x="9" y="9" width="11" height="11" rx="2" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
<path d="M5 15V5a2 2 0 0 1 2-2h8" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<template v-if="data.blockchain">
|
||||
<div class="chain-row">
|
||||
<span class="chain-k">{{ t('chain.hash') }}</span>
|
||||
@@ -356,7 +337,13 @@
|
||||
<span class="chain-k">{{ t('chain.onchainAt') }}</span>
|
||||
<span class="chain-v">{{ fmt(data.blockchain.onchainAt) }}</span>
|
||||
</div>
|
||||
<a v-if="data.blockchain.explorerUrl" class="chain-link" :href="data.blockchain.explorerUrl" target="_blank">
|
||||
<a
|
||||
v-if="data.blockchain.explorerUrl"
|
||||
class="chain-link"
|
||||
:href="data.blockchain.explorerUrl"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{{ t('chain.explorer') }} →
|
||||
</a>
|
||||
</template>
|
||||
@@ -394,15 +381,6 @@
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="data?.queriedAt" class="anti-meta">{{ t('anti.queriedAt', { t: fmt(data.queriedAt) }) }}</div>
|
||||
<div v-if="data?.code" class="anti-code">
|
||||
{{ t('anti.code') }}:<span class="mono">{{ data.code }}</span>
|
||||
<button class="icon-copy anti-copy" :aria-label="t('chain.copy')" :title="t('chain.copy')" @click="copy(data.code)">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true">
|
||||
<rect x="9" y="9" width="11" height="11" rx="2" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
<path d="M5 15V5a2 2 0 0 1 2-2h8" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1019,15 +997,6 @@ watch(
|
||||
font-size: 12px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
.anti-code {
|
||||
font-size: 12px;
|
||||
opacity: 0.85;
|
||||
margin-top: 2px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.code-copy {
|
||||
display: none;
|
||||
}
|
||||
.carousel {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
@@ -1453,15 +1422,6 @@ watch(
|
||||
.icon-copy:active {
|
||||
background: var(--soft-bg);
|
||||
}
|
||||
.anti-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-left: 6px;
|
||||
border-color: rgba(255, 255, 255, 0.38);
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
color: #fff;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.chain-link {
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
|
||||
Reference in New Issue
Block a user