From 4891feba6386be8eab8c4ea2658f478379d4bab7 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 20 Nov 2025 11:26:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=93=8D=E4=BD=9C=E9=92=B1=E5=8C=85?= =?UTF-8?q?=E9=A1=B5):=20=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=EF=BC=8C=E5=BD=93=E8=BE=93=E5=85=A5=E5=A4=A7=E4=BA=8E?= =?UTF-8?q?=E9=92=B1=E5=8C=85=E9=87=91=E9=A2=9D=E6=97=B6=EF=BC=8C=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=B0=86=E8=BE=93=E5=85=A5=E6=9B=BF=E6=8D=A2=E6=88=90?= =?UTF-8?q?=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/ar.json | 1 + src/locales/en.json | 1 + src/locales/zh.json | 1 + src/views/BDCenter/availableIncome.vue | 27 ++++++++++++++++++++++++-- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/locales/ar.json b/src/locales/ar.json index 47022dd..eb5c534 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -275,6 +275,7 @@ "withdrawal_method": "طريقة السحب", "please_select_bank_card": "يرجى اختيار بطاقة مصرفية", + "change_withdrawal_method": "تغيير طريقة السحب", "enter_cash_out_amount": "يرجى إدخال مبلغ السحب", "cash_out_minimum": "*يجب أن يكون مبلغ السحب أكبر من أو يساوي 50 دولارًا", diff --git a/src/locales/en.json b/src/locales/en.json index 9202cea..f5e65e2 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -275,6 +275,7 @@ "withdrawal_method": "Withdrawal Method", "please_select_bank_card": "Please select a bank card", + "change_withdrawal_method": "Change withdrawal method", "enter_cash_out_amount": "Please enter the cash out amount", "cash_out_minimum": "*The cash out amount must be >= $50", diff --git a/src/locales/zh.json b/src/locales/zh.json index f24bdc0..2b85f63 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -275,6 +275,7 @@ "withdrawal_method": "提现方式", "please_select_bank_card": "请选择银行卡", + "change_withdrawal_method": "更改提现方式", "enter_cash_out_amount": "请输入提现金额", "cash_out_minimum": "*提现金额必须大于等于50美元", diff --git a/src/views/BDCenter/availableIncome.vue b/src/views/BDCenter/availableIncome.vue index e313614..c73f53a 100644 --- a/src/views/BDCenter/availableIncome.vue +++ b/src/views/BDCenter/availableIncome.vue @@ -617,11 +617,17 @@
{{ t('withdrawal_method') }}: {{ usedBankCard?.cardType || '' }}
+
+ {{ t('card_number') }}: {{ usedBankCard?.cardNo }} +
-
+
+ {{ t('change_withdrawal_method') }} +
+
{{ t('please_select_bank_card') }}
@@ -643,7 +649,8 @@ background-color: transparent; color: black; " - v-model="cashOutAmount" + :value="cashOutAmount" + @input="handleCashOutAmountInput" />
@@ -767,6 +774,11 @@ const availableIncome = ref({}) const selectedCoin = ref(null) const selectedExchangeOption = ref(null) const activeAction = ref(route.query.activeAction || 'Exchange') + +const availableBalance = computed(() => { + return availableIncome.value?.availableBalance || 0 +}) + const loading = ref(false) const exchangeTipShow = ref(false) @@ -848,6 +860,17 @@ const hasKYC = computed(() => { return bankCardInfo.value != null }) +//处理提现金额输入 +const handleCashOutAmountInput = (event) => { + let value = parseFloat(event.target.value) + + if (value > availableBalance.value) { + value = availableBalance.value + event.target.value = value // 更新输入框的值 + } + cashOutAmount.value = value // 更新 cashOutAmount 的值 +} + // 获取提现信息列表 const getWithdrawInfoListData = async () => { try {