From 3111436054a821752114a735b136c7267559ca4b Mon Sep 17 00:00:00 2001 From: Seven Date: Sat, 10 Jan 2026 17:33:59 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=93=B6=E8=A1=8C?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E5=92=8C=E8=B4=A7=E5=B8=81=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E4=BC=98=E5=8C=96=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BA=A4=E4=BA=92=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 2 + src/api/types.ts | 2 +- src/locales/zh-CN.json | 8 +- src/locales/zh-HK.json | 4 +- src/store/wallet.ts | 4 +- .../components/select-bank-account.vue | 39 ++++++++ .../withdraw/components/select-currency.vue | 40 ++++++++ src/views/withdraw/index.vue | 92 ++++++++++++------- 8 files changed, 151 insertions(+), 40 deletions(-) create mode 100644 src/views/withdraw/components/select-bank-account.vue create mode 100644 src/views/withdraw/components/select-currency.vue diff --git a/components.d.ts b/components.d.ts index 28f4ecd..a17b220 100644 --- a/components.d.ts +++ b/components.d.ts @@ -58,6 +58,7 @@ declare module 'vue' { IonTabs: typeof import('@ionic/vue')['IonTabs'] IonText: typeof import('@ionic/vue')['IonText'] IonTitle: typeof import('@ionic/vue')['IonTitle'] + IonToggle: typeof import('@ionic/vue')['IonToggle'] IonToolbar: typeof import('@ionic/vue')['IonToolbar'] LayoutDefault: typeof import('./src/components/layout/default.vue')['default'] PwaInstallButton: typeof import('./src/components/pwa-install-button/index.vue')['default'] @@ -117,6 +118,7 @@ declare global { const IonTabs: typeof import('@ionic/vue')['IonTabs'] const IonText: typeof import('@ionic/vue')['IonText'] const IonTitle: typeof import('@ionic/vue')['IonTitle'] + const IonToggle: typeof import('@ionic/vue')['IonToggle'] const IonToolbar: typeof import('@ionic/vue')['IonToolbar'] const LayoutDefault: typeof import('./src/components/layout/default.vue')['default'] const PwaInstallButton: typeof import('./src/components/pwa-install-button/index.vue')['default'] diff --git a/src/api/types.ts b/src/api/types.ts index 3d05af8..d0c1156 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -34,7 +34,7 @@ export type RwaIssuanceProductBody = TreatyBody; -export type BankAccountsData = Treaty.Data; +export type BankAccountsData = Treaty.Data["data"][number]; export type BankAccountBody = TreatyBody; diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 4c3640f..4677592 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -58,11 +58,11 @@ "chooseCurrency": "选择货币", "chooseMethod": "选择提现方式", "amount": "金额", - "enterAmountMax": "请输入金额(最大:{amount})", + "enterAmountMax": "请输入金额(最大可用:{amount})", "validAmountError": "请输入有效的金额。", - "bankAccountId": "银行账户ID", - "enterBankAccountId": "请输入银行账户ID", - "validBankAccountError": "请输入有效的银行账户ID。", + "bankAccountId": "银行账户", + "enterBankAccountId": "请输入银行账户", + "validBankAccountError": "请输入有效的银行账户。", "chooseChain": "选择链", "cryptoAddress": "加密货币地址", "enterCryptoAddress": "请输入加密货币地址", diff --git a/src/locales/zh-HK.json b/src/locales/zh-HK.json index fdb5d52..012aca1 100644 --- a/src/locales/zh-HK.json +++ b/src/locales/zh-HK.json @@ -30,9 +30,9 @@ "chooseCurrency": "選擇貨幣", "chooseMethod": "選擇提現方式", "amount": "金額", - "enterAmountMax": "請輸入金額(最大:{amount})", + "enterAmountMax": "請輸入金額(最大可用:{amount})", "validAmountError": "請輸入有效的金額。", - "bankAccountId": "銀行賬戶ID", + "bankAccountId": "銀行賬戶", "enterBankAccountId": "請輸入銀行賬戶ID", "validBankAccountError": "請輸入有效的銀行賬戶ID。", "chooseChain": "選擇鏈", diff --git a/src/store/wallet.ts b/src/store/wallet.ts index 9167985..12acd20 100644 --- a/src/store/wallet.ts +++ b/src/store/wallet.ts @@ -7,7 +7,7 @@ interface State { balances: BalancesData; fundingBalances: BalancesData; tradingBalances: BalancesData; - bankAccounts: BankAccountsData["data"]; + bankAccounts: BankAccountsData[]; supportBanks: SupportBanksData["data"]; } @@ -57,7 +57,7 @@ export const useWalletStore = defineStore("wallet", () => { state.tradingBalances = balances.value || []; } - async function syncBankAccounts(data?: BankAccountsData["data"]) { + async function syncBankAccounts(data?: BankAccountsData[]) { if (data) { state.bankAccounts = data; return; diff --git a/src/views/withdraw/components/select-bank-account.vue b/src/views/withdraw/components/select-bank-account.vue new file mode 100644 index 0000000..aba53ae --- /dev/null +++ b/src/views/withdraw/components/select-bank-account.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/withdraw/components/select-currency.vue b/src/views/withdraw/components/select-currency.vue new file mode 100644 index 0000000..9915df7 --- /dev/null +++ b/src/views/withdraw/components/select-currency.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/src/views/withdraw/index.vue b/src/views/withdraw/index.vue index adde734..36f5a31 100644 --- a/src/views/withdraw/index.vue +++ b/src/views/withdraw/index.vue @@ -1,16 +1,21 @@