feat: 添加法币充值和提现功能的国际化支持,更新相关组件文本
This commit is contained in:
@@ -4,6 +4,8 @@ import { toastController } from "@ionic/vue";
|
||||
import { client } from "@/api";
|
||||
import { AssetCodeEnum, PaymentChannelEnum } from "@/api/enum";
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const form = ref<DepositFiatBody>({
|
||||
amount: "",
|
||||
assetCode: AssetCodeEnum.USDT,
|
||||
@@ -32,7 +34,7 @@ async function onSubmit() {
|
||||
const { data, status } = await client.api.deposit.fiat.post(form.value);
|
||||
if (status === 200) {
|
||||
const toast = await toastController.create({
|
||||
message: "Submission successful!",
|
||||
message: t("recharge.fiat.submitSuccess"),
|
||||
duration: 1500,
|
||||
position: "bottom",
|
||||
});
|
||||
@@ -49,13 +51,13 @@ async function onSubmit() {
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button />
|
||||
</ion-buttons>
|
||||
<ion-title>Fiat Recharge</ion-title>
|
||||
<ion-title>{{ t("recharge.fiat.title") }}</ion-title>
|
||||
</ion-toolbar>
|
||||
</IonHeader>
|
||||
<IonContent :fullscreen="true" class="ion-padding">
|
||||
<div class="flex flex-col gap-5">
|
||||
<ui-input-label
|
||||
label="Recharge bank card account"
|
||||
:label="t('recharge.fiat.bankAccount')"
|
||||
model-value="74321329321312"
|
||||
type="number"
|
||||
readonly
|
||||
@@ -64,7 +66,7 @@ async function onSubmit() {
|
||||
|
||||
<ion-radio-group v-model="form.assetCode">
|
||||
<ion-label class="text-sm">
|
||||
Choose Currency
|
||||
{{ t("recharge.fiat.chooseCurrency") }}
|
||||
</ion-label>
|
||||
<ion-item v-for="item in AssetCodeEnum" :key="item">
|
||||
<ion-radio :value="item" justify="space-between">
|
||||
@@ -82,19 +84,19 @@ async function onSubmit() {
|
||||
<ui-input-label
|
||||
ref="inputInstance"
|
||||
v-model="form.amount"
|
||||
label="Amount"
|
||||
placeholder="Enter the amount"
|
||||
:label="t('recharge.fiat.amount')"
|
||||
:placeholder="t('recharge.fiat.enterAmount')"
|
||||
type="number"
|
||||
inputmode="numeric"
|
||||
error-text="Please enter a valid amount."
|
||||
:error-text="t('recharge.fiat.validAmountError')"
|
||||
@ion-input="validate($event.target.value as string)"
|
||||
@ion-blur="markTouched"
|
||||
/>
|
||||
|
||||
<ion-note>Please make sure to enter the correct amount. After submission, the funds will be credited to your account after review in the background.</ion-note>
|
||||
<ion-note>{{ t("recharge.fiat.note") }}</ion-note>
|
||||
|
||||
<ion-button expand="block" @click="onSubmit">
|
||||
Submit
|
||||
{{ t("recharge.fiat.submit") }}
|
||||
</ion-button>
|
||||
</div>
|
||||
</IonContent>
|
||||
|
||||
Reference in New Issue
Block a user