chore(钱包操作页): 补充翻译

This commit is contained in:
hzj 2025-12-12 10:45:04 +08:00
parent 977b5bef0b
commit d38dfe5aa4

View File

@ -35,8 +35,8 @@
>
<span v-if="loading" class="loading-text">{{ t('loading') }}...</span>
<span v-else style="font-weight: 700; color: #333; font-size: 1.1em"
>${{ availableIncome?.availableBalance }}</span
>
>{{ formattedAmount(availableIncome?.availableBalance || 0) }}
</span>
</div>
</div>
@ -107,7 +107,7 @@
<div style="font-weight: 500; color: #373232">
<!-- {{ option.coins }} -->
</div>
<div style="font-weight: 500; color: #131111">${{ option.cash }}</div>
<div style="font-weight: 500; color: #131111">{{ formattedAmount(option.cash) }}</div>
</div>
</div>
</div>
@ -200,7 +200,7 @@
{{ selectedPayee.name }}
</div>
<div style="margin: 0; font-size: 14px; color: #666">
ID: {{ selectedPayee.account || selectedPayee.id }}
{{ t('user_id_prefix') }} {{ selectedPayee.account || selectedPayee.id }}
</div>
</div>
<!-- 换人按钮 -->
@ -280,7 +280,7 @@
<div style="font-weight: 500; color: #373232">
<!-- {{ coin.amount }} -->
</div>
<div style="font-weight: 500; color: #131111">${{ coin.price }}</div>
<div style="font-weight: 500; color: #131111">{{ formattedAmount(coin.price) }}</div>
</div>
</div>
</div>
@ -853,6 +853,13 @@ const hasKYC = computed(() => {
return bankCardInfo.value != null
})
const formattedAmount = (amount) => {
if (locale.value === 'ar') {
return `${amount}$`
}
return `$${amount}`
}
//
const handleCashOutAmountInput = (event) => {
let value = parseFloat(event.target.value)