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 @@