feat: 更新数据类型为 TradableData,修正相关文档和属性访问
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script lang='ts' setup>
|
||||
import type { RwaData } from "@/api/types";
|
||||
import type { TradableData } from "@/api/types";
|
||||
|
||||
const props = defineProps<{
|
||||
data: RwaData | null;
|
||||
data: TradableData | null;
|
||||
}>();
|
||||
|
||||
const { t } = useI18n();
|
||||
@@ -16,7 +16,7 @@ const { t } = useI18n();
|
||||
{{ t('market.tradeRwa.about') }}
|
||||
</div>
|
||||
<div class="text-xs mt-2">
|
||||
{{ data?.product.description || t('market.tradeRwa.noDescription') }}
|
||||
{{ data?.product?.description || t('market.tradeRwa.noDescription') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,21 +27,21 @@ const { t } = useI18n();
|
||||
<div class="label">
|
||||
{{ t('market.tradeRwa.fields.productCode') }}
|
||||
</div>
|
||||
<div>{{ data?.product.code }}</div>
|
||||
<div>{{ data?.product?.code }}</div>
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<div class="label">
|
||||
{{ t('market.tradeRwa.fields.valuation') }}
|
||||
</div>
|
||||
<div>${{ formatAmountWithUnit(data?.product.estimatedValue) }}</div>
|
||||
<div>${{ formatAmountWithUnit(data?.product?.estimatedValue) }}</div>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<div class="label">
|
||||
{{ t('market.tradeRwa.fields.unitPrice') }}
|
||||
链类型
|
||||
</div>
|
||||
<div>${{ formatAmountWithUnit(data?.unitPrice) }}</div>
|
||||
<div>{{ data?.chainType }}</div>
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<div class="label">
|
||||
|
||||
Reference in New Issue
Block a user