From 1201bf91b3dcac3f5b69c755ff2e54c362956467 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Mon, 09 Mar 2026 16:41:01 +0800
Subject: [PATCH] 1
---
src/views/cryptos/Recharge/rechargePage.vue | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/views/cryptos/Recharge/rechargePage.vue b/src/views/cryptos/Recharge/rechargePage.vue
index 4b94379..5c564ff 100644
--- a/src/views/cryptos/Recharge/rechargePage.vue
+++ b/src/views/cryptos/Recharge/rechargePage.vue
@@ -31,13 +31,13 @@
{{ $t('粘贴') }}</div>
</div>
</div> -->
- <div class="mb-20">
+ <!-- <div class="mb-20">
<div class="font-28 textColor">{{ $t('充币数量') }}</div>
<div>
<input v-model="amount" class="input-view w-full font-28 textColor inputBackground"
:placeholder="$t('请输入充币数量')" />
</div>
- </div>
+ </div> -->
<div>
<div class="font-28 textColor">{{ $t('链名称') }}</div>
<div class="flex ">
@@ -59,8 +59,8 @@
<div class="pl-30 pr-30">
<!-- <div class="font-30 mb-27 textColor">{{ $t('重要提示') }}</div> -->
<!-- <div class="font-28 text-grey" v-html="tip"></div> -->
- <button class="btnMain text-white next-btn font-30 rounded-lg" @click="nextBtn">{{ $t('下一步')
- }}</button>
+ <!-- <button class="btnMain text-white next-btn font-30 rounded-lg" @click="nextBtn">{{ $t('下一步')
+ }}</button> -->
</div>
</div>
</div>
@@ -134,8 +134,14 @@
}).then((res) => {
this.chainList = res;
- this.address = res[0].address;
- this.blockchain_name = res[0].blockchain_name;
+ const wantName = this.$route.query.blockchain_name;
+ const idx = wantName && res.length
+ ? res.findIndex((c) => (c.blockchain_name || '').toLowerCase() === (wantName || '').toLowerCase())
+ : -1;
+ const i = idx >= 0 ? idx : 0;
+ this.blockchainIndex = i;
+ this.address = res[i].address;
+ this.blockchain_name = res[i].blockchain_name;
this.getQRCode();
});
--
Gitblit v1.9.3