feat: 添加资产代码和提现方式的国际化支持,优化提现页面的用户体验
This commit is contained in:
@@ -41,6 +41,15 @@
|
||||
"validCryptoAddressError": "Please enter a valid crypto address.",
|
||||
"successMessage": "Withdrawal request submitted successfully!",
|
||||
"submit": "Submit",
|
||||
"assetCode": {
|
||||
"USDT": "USDT",
|
||||
"OPTS": "OPTS"
|
||||
},
|
||||
"method": {
|
||||
"bank": "Bank Transfer",
|
||||
"crypto": "Cryptocurrency",
|
||||
"cash": "Cash"
|
||||
},
|
||||
"validation": {
|
||||
"assetCodeRequired": "Please select a currency",
|
||||
"amountRequired": "Please enter an amount",
|
||||
|
||||
@@ -41,6 +41,15 @@
|
||||
"validCryptoAddressError": "请输入有效的加密货币地址。",
|
||||
"successMessage": "提现申请提交成功!",
|
||||
"submit": "提交",
|
||||
"assetCode": {
|
||||
"USDT": "USDT",
|
||||
"OPTS": "OPTS"
|
||||
},
|
||||
"method": {
|
||||
"bank": "银行转账",
|
||||
"crypto": "加密货币",
|
||||
"cash": "现金"
|
||||
},
|
||||
"validation": {
|
||||
"assetCodeRequired": "请选择货币",
|
||||
"amountRequired": "请输入金额",
|
||||
|
||||
@@ -63,7 +63,14 @@ function handleSubmit(values: GenericObject) {
|
||||
<div>
|
||||
<Field name="categoryId" type="text">
|
||||
<template #default="{ field }">
|
||||
<ion-select class="ui-select" interface="action-sheet" toggle-icon="" v-bind="field" :label="t('asset.issue.apply.productType')" :placeholder="t('asset.issue.apply.chooseProductType')">
|
||||
<ion-select
|
||||
class="ui-select"
|
||||
interface="action-sheet"
|
||||
toggle-icon=""
|
||||
v-bind="field"
|
||||
:label="t('asset.issue.apply.productType')"
|
||||
:placeholder="t('asset.issue.apply.chooseProductType')"
|
||||
>
|
||||
<ion-select-option v-for="item in categories?.data" :key="item.id" :value="item.id">
|
||||
{{ item.name }}
|
||||
</ion-select-option>
|
||||
|
||||
@@ -68,7 +68,7 @@ async function onSubmit(values: GenericObject) {
|
||||
</ion-label>
|
||||
<ion-item v-for="item in AssetCodeEnum" :key="item">
|
||||
<ion-radio :value="item" justify="space-between">
|
||||
{{ item }}
|
||||
{{ t(`withdraw.assetCode.${item}`) }}
|
||||
</ion-radio>
|
||||
</ion-item>
|
||||
</ion-radio-group>
|
||||
@@ -86,7 +86,7 @@ async function onSubmit(values: GenericObject) {
|
||||
</ion-label>
|
||||
<ion-item v-for="item in WithdrawMethodEnum" :key="item">
|
||||
<ion-radio :value="item" justify="space-between">
|
||||
{{ item }}
|
||||
{{ t(`withdraw.method.${item}`) }}
|
||||
</ion-radio>
|
||||
</ion-item>
|
||||
</ion-radio-group>
|
||||
@@ -98,18 +98,18 @@ async function onSubmit(values: GenericObject) {
|
||||
<Field name="withdrawMethod">
|
||||
<template #default="{ value: withdrawMethod }">
|
||||
<div v-if="withdrawMethod === WithdrawMethodEnum.BANK">
|
||||
<Field name="bankAccountId">
|
||||
<Field name="bankAccountId" type="text">
|
||||
<template #default="{ field }">
|
||||
<ion-select
|
||||
v-bind="field"
|
||||
class="ui-select"
|
||||
interface="action-sheet"
|
||||
toggle-icon=""
|
||||
label-placement="floating"
|
||||
:label="t('withdraw.bankAccountId')"
|
||||
:placeholder="t('withdraw.enterBankAccountId')"
|
||||
>
|
||||
<ion-select-option v-for="item in bankAccounts" :key="item.id" :value="item.id">
|
||||
{{ item.bankName }} - **** **** **** {{ item.accountName.slice(-4) }}
|
||||
{{ item.bankName }} - {{ item.maskAccountNumber }}
|
||||
</ion-select-option>
|
||||
</ion-select>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user