feat: 添加资产代码和提现方式的国际化支持,优化提现页面的用户体验
This commit is contained in:
@@ -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