fix: 提款页面币种选择优化

1. "Select Coin"改为i18n国际化
2. BTC/ETH使用真实curr_id(3/4)替代静态占位ID
3. 手续费显示统一使用后端返回的process字段
This commit is contained in:
li
2026-03-31 10:53:11 +08:00
parent 2872bdc4e1
commit 6c085426de
+5 -4
View File
@@ -44,7 +44,7 @@
<!-- 币种选择 -->
<view v-if="current==1" class="width-100b radiu-20 padding-w-32 padding-b-20 margin-t-24"
:style="'background-color: '+theme.fu_bg+';color: '+theme.text">
<view class="height-116 padding-t-27 font-28 weight-bold">Select Coin</view>
<view class="height-116 padding-t-27 font-28 weight-bold">{{i18n.withdraw.text1}}</view>
<view class="flex align-center flex-wrap">
<view @click="changeCoinType(item)" v-for="(item,index) in coinTypes" :key="item.id"
:class="currid==item.id?'onbox':'offbox'" class="numbold-font margin-r-14">{{item.name}}</view>
@@ -95,7 +95,7 @@
:style="'background-color: '+theme.fu_bg+';color: '+theme.text">
<text class="font-28 weight-bold">{{i18n.withdraw.text7}}</text>
<view v-if="current==1" class="flex align-center">
<text class="font-28 color-0165EE weight-bold">{{lian==0?data.erc_process:data.process}}</text>
<text class="font-28 color-0165EE weight-bold">{{data.process}}</text>
<text class="font-28 numbold-font margin-l-10">{{curr}}</text>
</view>
<view v-if="current==2" class="flex align-center">
@@ -409,13 +409,14 @@
if (res.code == 1) {
this.list = res.data
// 构建币种选择列表,确保包含 BTC 和 ETH
// BTC curr_id=3, ETH curr_id=4(与后端 app_currency 表对应)
let types = [...res.data]
let names = types.map(t => t.name.toUpperCase())
if (!names.includes('BTC')) {
types.push({ id: 'btc_static', name: 'BTC' })
types.push({ id: 3, name: 'BTC' })
}
if (!names.includes('ETH')) {
types.push({ id: 'eth_static', name: 'ETH' })
types.push({ id: 4, name: 'ETH' })
}
this.coinTypes = types
this.curr = res.data[0].name