From da36f82f34096b61d72f3241e34135ec0e4729bc Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 30 Jun 2025 17:58:12 +0800
Subject: [PATCH] 计算金额

---
 src/views/wallet/recharge.vue |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/views/wallet/recharge.vue b/src/views/wallet/recharge.vue
index 6fcb53d..b512fc9 100644
--- a/src/views/wallet/recharge.vue
+++ b/src/views/wallet/recharge.vue
@@ -466,7 +466,7 @@
       coin: "USDT",
       address: "",
       codeImg: "",
-      blockchain: {},
+      blockchain: [],
       imgURl: "",
       m_showCode: true,
       quantity: "", //充币数量
@@ -561,17 +561,26 @@
       );
     },
     getAddress() {
-      Axios2.url("wap/api/channelBlockchain!getBlockchainName.action", {
+      // channelBlockchain!getBlockchainName.action    pc接口
+      // user!appList     app接口
+      Axios2.url("wap/api/user!appList", {
         coin: this.coin,
       }).then((res) => {
-        this.blockchain = res.data;
+        const elarr = res.data.page.elements;
         this.listOpData1 = [];
-        for (var i in res.data) {
-          this.listOpData1.push({
-            icon: res.data[i].coin,
-            name: res.data[i].blockchain_name,
-          });
+        for (var i in elarr) {
+          if (
+            this.listOpData[this.biChooseIndex].name ==
+            elarr[i].coin.toUpperCase()
+          ) {
+            this.listOpData1.push({
+              icon: elarr[i].coin,
+              name: elarr[i].blockchain_name,
+              ...elarr[i],
+            });
+          }
         }
+        this.blockchain = this.listOpData1;
         this.blockchainIndex = 0;
         this.address = this.blockchain[0].address;
         this.imgURl = this.mounted(this.blockchain[0].address); //TODO 接口返回的地址有问题

--
Gitblit v1.9.3