From 6a0077b14c18a21665d6d92a31a29fd29bf204c6 Mon Sep 17 00:00:00 2001 From: Seven Date: Thu, 8 Jan 2026 00:36:15 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=8C=81=E4=BB=93?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E5=92=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E6=8C=81=E4=BB=93=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E5=B1=95=E7=A4=BA=E4=B8=8E=E5=88=B7=E6=96=B0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types.ts | 4 + src/locales/en-US.json | 16 +++ src/locales/zh-CN.json | 16 +++ src/views/market/components/rwa-orders.vue | 117 ++++++++++++++++++++- 4 files changed, 150 insertions(+), 3 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index 7caa221..76b1bec 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -76,6 +76,10 @@ export type TradableData = Treaty.Data; +export type HoldingsData = Treaty.Data; + +export type HoldingItem = HoldingsData extends { data: Array } ? T : HoldingsData extends Array ? T : never; + /** * 应用版本信息 */ diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 27ac2ff..196e109 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -304,6 +304,22 @@ }, "loadMore": "Load More" }, + "holdings": { + "title": "My Holdings", + "empty": "No holdings yet", + "nameCode": "Name/Code", + "quantity": "Quantity", + "totalValue": "Total Value", + "purchaseDate": "Purchase Date", + "status": { + "active": "Active", + "tokenized": "Tokenized", + "locked": "Locked" + }, + "units": { + "shares": "shares" + } + }, "market": { "title": "Market", "search": { diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 3930a66..7247a7e 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -310,6 +310,22 @@ }, "loadMore": "加载更多" }, + "holdings": { + "title": "我的持仓", + "empty": "暂无持仓订单", + "nameCode": "名称/编号", + "quantity": "数量", + "totalValue": "总价值", + "purchaseDate": "购买日期", + "status": { + "active": "持有中", + "tokenized": "已代币化", + "locked": "锁定中" + }, + "units": { + "shares": "份" + } + }, "market": { "title": "市场", "search": { diff --git a/src/views/market/components/rwa-orders.vue b/src/views/market/components/rwa-orders.vue index 3cedd96..15dcd05 100644 --- a/src/views/market/components/rwa-orders.vue +++ b/src/views/market/components/rwa-orders.vue @@ -1,11 +1,122 @@ - +