From 9b2bee1321e99dfce7fe8442f750b1300391e841 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 04 Apr 2025 21:50:07 +0800
Subject: [PATCH] 1
---
src/page/withdraw/withdrawPage.vue | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/page/withdraw/withdrawPage.vue b/src/page/withdraw/withdrawPage.vue
index cf63ebd..8ddb1ad 100644
--- a/src/page/withdraw/withdrawPage.vue
+++ b/src/page/withdraw/withdrawPage.vue
@@ -123,7 +123,7 @@
import AxiosWithdraw from "@/API/withdraw.js"
import assetsHead from "@/components/assets-head";
import BarScan from '@/components/scan/scan.vue';
-import { _getAllWallet } from "@/API/fund.api";
+import { _getAllWallet,walletGrther } from "@/API/fund.api";
import AxiosUser from "@/API/userCenter";
import { mapGetters } from "vuex";
export default {
@@ -298,12 +298,20 @@
},
//获取钱包余额
getAvailable(symbol) {
- _getAllWallet().then((res) => {
- let walletList = res.extends;
- let initObj = walletList.find(item => {
- return item.symbol.toLowerCase() == symbol.toLowerCase()
- })
- this.usdtBalance = initObj.usable
+ walletGrther().then((res) => {
+ console.log('symbol.toLowerCase()',symbol.toLowerCase());
+ if(symbol.toLowerCase()=='usdt'){
+ this.usdtBalance = res.usdtMoney
+ }else if(symbol.toLowerCase()=='eth'){
+ this.usdtBalance = res.ethMoney
+ }else{
+ this.usdtBalance = res.btcMoney
+ }
+ // let walletList = res.extends;
+ // let initObj = walletList.find(item => {
+ // return item.symbol.toLowerCase() == symbol.toLowerCase()
+ // })
+ // this.usdtBalance = initObj.usable
});
},
//点全部
--
Gitblit v1.9.3