From 42faef34194c466f03e29d75a63ae502e4213044 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 10:38:46 +0800
Subject: [PATCH] 上一版是10.10的, 这版才是原始源码
---
src/views/exchange/withdraw-bank.vue | 30 +++---------------------------
1 files changed, 3 insertions(+), 27 deletions(-)
diff --git a/src/views/exchange/withdraw-bank.vue b/src/views/exchange/withdraw-bank.vue
index fb15985..45c7fa0 100644
--- a/src/views/exchange/withdraw-bank.vue
+++ b/src/views/exchange/withdraw-bank.vue
@@ -93,7 +93,7 @@
<div class="px-4 mt-6">
<van-button class="w-full" type="primary" @click="submit">{{
$t('submit')
- }}</van-button>
+ }}</van-button>
</div>
<fx-popup v-model:show="showPopup" :payInfo="payInfo" @close="closeOrder" :fee="fee" :rate="rate"
:fiatValue="fiatValue" :volume_last="volume_last"></fx-popup>
@@ -103,7 +103,7 @@
<script setup>
import fxCountryList from '@/components/fx-country-list/index.vue'
import fxPopup from '@/components/fx-popup/confirm-order.vue'
-import { _getCurrencyList, _getPaymentMethod, _getSyspara } from '@/service/trade.api.js'
+import { _getCurrencyList, _getPaymentMethod } from '@/service/trade.api.js'
import { ref, watch, onMounted } from 'vue'
import { _getSessionToken } from '@/service/recharge.api'
import { _withdrawFee } from '@/service/withdraw.api'
@@ -136,7 +136,6 @@
}
})
actions.value = currencies.value
- getSysparaByFiat()
})
_getSessionToken({}).then((res) => {
@@ -145,30 +144,12 @@
})
const fiatValue = ref('')
const rate = ref(1)
-
const payType = ref('')
const amount = ref('')
const router = useRouter()
const showPopup = ref(false)
const fee = ref(0)
const volume_last = ref(0)
-const minXE = ref(100) // 最小提交限额
-
-// 获取系统参数
-const getSysparaByFiat = async () => {
- // 获取 usd 提现最低限额
- const code = "withdraw_limit"
-
- try {
- const res = await _getSyspara({ code })
- console.log('系统参数获取成功:', res)
- // 这里可以根据返回的数据进行相应处理
- minXE.value = res.withdraw_limit
- return res
- } catch (error) {
- console.error('获取系统参数失败:', error)
- }
-}
const openRecord = () => {
setStorage('recordId', 3)
@@ -218,7 +199,7 @@
fee.value = res.fee
volume_last.value = res.volume_last
} else {
- fee.value = Math.ceil(res.fee * rate.value * 1000) / 1000
+ fee.value = res.fee * rate.value
volume_last.value = amount.value - fee.value
}
@@ -263,7 +244,6 @@
fiatValue.value = value.name
rate.value = value.rate
show.value = false
- // 切换法币时,watch 会自动触发调用接口
}
const onSelect1 = (value, index) => {
active.value = index
@@ -279,10 +259,6 @@
}
if (!amount.value) {
showToast(t('enterWithdrawalAmount'))
- return
- }
- if (amount.value < (Math.ceil(minXE.value * rate.value * 100) / 100)) {
- showToast(t('提现不得小于限额') + ' ' + (Math.ceil(minXE.value * rate.value * 100) / 100))
return
}
if (!payType.value) {
--
Gitblit v1.9.3