From 0b0e67114c08bcdac2dc37c642b506209cdba539 Mon Sep 17 00:00:00 2001 From: Seven Date: Sat, 27 Dec 2025 21:51:02 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=8C=85=E6=8B=AC?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=B0=BF=E3=80=81=E4=BA=A4=E6=98=93=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=92=8C=E4=BA=A4=E6=98=93=E5=AF=B9=E5=A4=B4=E9=83=A8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trade/components/order-book.vue | 158 +++++++++ src/views/trade/components/orders-panel.vue | 333 ++++++++++++++++++ src/views/trade/components/trade-form.vue | 292 +++++++++++++++ .../trade/components/trading-pair-header.vue | 90 +++++ src/views/trade/index.vue | 115 +++++- src/views/withdraw/rules.ts | 2 +- vault.md | 10 +- 7 files changed, 983 insertions(+), 17 deletions(-) create mode 100644 src/views/trade/components/order-book.vue create mode 100644 src/views/trade/components/orders-panel.vue create mode 100644 src/views/trade/components/trade-form.vue create mode 100644 src/views/trade/components/trading-pair-header.vue diff --git a/src/views/trade/components/order-book.vue b/src/views/trade/components/order-book.vue new file mode 100644 index 0000000..2b078c1 --- /dev/null +++ b/src/views/trade/components/order-book.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/views/trade/components/orders-panel.vue b/src/views/trade/components/orders-panel.vue new file mode 100644 index 0000000..31eaec4 --- /dev/null +++ b/src/views/trade/components/orders-panel.vue @@ -0,0 +1,333 @@ + + + + + diff --git a/src/views/trade/components/trade-form.vue b/src/views/trade/components/trade-form.vue new file mode 100644 index 0000000..93e9aae --- /dev/null +++ b/src/views/trade/components/trade-form.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/views/trade/components/trading-pair-header.vue b/src/views/trade/components/trading-pair-header.vue new file mode 100644 index 0000000..690515b --- /dev/null +++ b/src/views/trade/components/trading-pair-header.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/views/trade/index.vue b/src/views/trade/index.vue index 5c5e2ac..c62b50d 100644 --- a/src/views/trade/index.vue +++ b/src/views/trade/index.vue @@ -1,34 +1,127 @@ diff --git a/src/views/withdraw/rules.ts b/src/views/withdraw/rules.ts index 44abfaa..87d72a7 100644 --- a/src/views/withdraw/rules.ts +++ b/src/views/withdraw/rules.ts @@ -10,7 +10,7 @@ export function createWithdrawSchema(t: (key: string, params?: any) => string, m .string() .required(t("withdraw.validation.amountRequired")) .test("is-number", t("withdraw.validation.amountInvalid"), (value) => { - return /^\d+(\.\d+)?$/.test(value || ""); + return /^\d+(?:\.\d+)?$/.test(value || ""); }) .test("max-amount", t("withdraw.validation.amountExceedsBalance"), (value) => { if (!value || maxAmount === "0") diff --git a/vault.md b/vault.md index ab314ab..badf08e 100644 --- a/vault.md +++ b/vault.md @@ -1,8 +1,8 @@ -open float Y 开盘价 每一个纬度(例如天纬度,就是一天的第一笔成交价格)的第一笔成交价格 -high float Y 最高价 -low float Y 最低价 -close float Y 收盘价 -settle float Y 结算价 每一个纬度(某一个时间段之内的金额总和 / 交易量) +open float Y 开盘价 每一个纬度(例如天纬度,就是一天的第一笔成交价格)的第一笔成交价格 +high float Y 最高价 +low float Y 最低价 +close float Y 收盘价 +settle float Y 结算价 每一个纬度(某一个时间段之内的金额总和 / 交易量) 接口 代币化分类接口