优化提现手续费动态配置

This commit is contained in:
wangqiao
2025-10-08 22:22:54 +08:00
parent 89f3b9679d
commit 3f3ea878b9
4 changed files with 46 additions and 4 deletions

View File

@ -21,7 +21,7 @@
</el-form-item>
</el-form>
<div class="text-12px color-red">
提示:收益金币提现正常收取平台手续费3%如需将充值金币提现选择全部提现选项因涉及充值赠送金额将收取155高额手续费如果恶意套利提现将提现审核不通过!
提示:收益金币提现正常收取平台手续费{{ walletConfig?.withdrawRateOfEarn }}%如需将充值金币提现选择全部提现选项因涉及充值赠送金额将收取{{ walletConfig?.withdrawRateOfRecharge }}%高额手续费如果恶意套利提现将提现审核不通过!
</div>
<template #footer>
<div class="dialog-footer">
@ -33,6 +33,7 @@
</template>
<script setup lang="ts">
import { getWalletConfig } from '~/api/personal-center/index'
const dialogVisible = defineModel('modelValue', {
default: false,
})
@ -44,6 +45,18 @@
const handleClose = (done: () => void) => {
done()
}
const walletConfig = ref<{
rechargeRate: number
commissionRate: number
withdrawRateOfRecharge: number
withdrawRateOfEarn: number
}>()
onMounted(() => {
getWalletConfig().then((res) => {
walletConfig.value = res.data
})
})
</script>
<style lang="scss" scoped></style>