From b4400036ffe65ecfe86dc34b08ba8ee19f8f1cf2 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 30 Jun 2025 11:50:34 +0800
Subject: [PATCH] style 充值接口替换

---
 src/views/wallet/recharge.vue |   35 ++++++++++++++++++++++-------------
 1 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/src/views/wallet/recharge.vue b/src/views/wallet/recharge.vue
index eeb81fe..3885528 100644
--- a/src/views/wallet/recharge.vue
+++ b/src/views/wallet/recharge.vue
@@ -125,7 +125,7 @@
                                   ref="copytxt"
                                   readonly
                                   class="css-vurnku noborder"
-                                  style="width: 320px"
+                                  style="width: 320px; color: #959595"
                                 />
                                 <!-- 复制icon -->
                                 <div class="css-c1olmu">
@@ -227,7 +227,7 @@
                     </div>
                   </div>
                   <!-- 充币数量 -->
-                  <!-- <div class="css-1oi6dii">
+                  <div class="css-1oi6dii">
                     <div class="css-1x9w05y">
                       {{ $t("message.user.ti6") }}
                     </div>
@@ -240,7 +240,7 @@
                         v-model="quantity"
                       ></el-input>
                     </div>
-                  </div> -->
+                  </div>
                   <!-- 上传凭证 -->
                   <!-- <div class="css-1oi6dii"> -->
                   <!-- <div class="css-1x9w05y">
@@ -265,7 +265,7 @@
                   <!-- </div> -->
                   <!-- </div> -->
                   <!-- 充币按钮 -->
-                  <!-- <div class="css-1oi6dii">
+                  <div class="css-1oi6dii">
                     <div class="css-1x9w05y"></div>
                     <div style="display: flex; width: 100%">
                       <el-button
@@ -276,7 +276,7 @@
                         {{ $t("message.user.ti8") }}</el-button
                       >
                     </div>
-                  </div> -->
+                  </div>
                 </div>
                 <!-- 充值未到账 -->
                 <div class="css-107bu5v">
@@ -448,6 +448,7 @@
       listTitle: this.$t("message.user.ti24"),
       listOpData: [
         { icon: "usdt", name: "USDT" },
+        { icon: "usdc", name: "USDC" },
         { icon: "btc", name: "BTC" },
         { icon: "eth", name: "ETH" },
       ],
@@ -465,7 +466,7 @@
       coin: "USDT",
       address: "",
       codeImg: "",
-      blockchain: {},
+      blockchain: [],
       imgURl: "",
       m_showCode: true,
       quantity: "", //充币数量
@@ -560,16 +561,24 @@
       );
     },
     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.blockchain = elarr;
         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,
+            });
+          }
         }
         this.blockchainIndex = 0;
         this.address = this.blockchain[0].address;

--
Gitblit v1.9.3