From c1b885e5ada172a7303d36cfba3cb313c28ae61b Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sat, 24 May 2025 11:19:40 +0800
Subject: [PATCH] 1
---
src/page/transfer.vue | 36 ++++++++++++++++++++----------------
1 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/src/page/transfer.vue b/src/page/transfer.vue
index c037157..935ce35 100644
--- a/src/page/transfer.vue
+++ b/src/page/transfer.vue
@@ -53,13 +53,10 @@
import assetsHead from "@/components/assets-head";
import ListAccount from "@/components/mining-account";
import {
- _initExchange,
- _exchange,
walletGrther,
walletGrthertransfer,
getwalletGrther
} from "@/API/fund.api";
- // import walletGrther from "@/API/fund.api";
import {
Popup
} from "vant";
@@ -84,14 +81,30 @@
fromTo:1,
typeindex:0,
amount:'',
- bzlist:['USDT','BTC','ETH','USDC'],
+ bzlist:['USDT','BTC','ETH'],
usdcMoney:'',
toptitle:this.$t('资金')+this.$t('账户'),
buttitle:this.$t('交易')+this.$t('账户'),
};
},
+ mounted(){
+ this.getwallet()
+ },
created() {
this.getwallet()
+ },
+ beforeRouteUpdate(to, from, next) {
+ // 路由更新时调用
+ next(vm => {
+ this.getwallet()
+ // 这里你可以访问到组件实例 `vm`,可以用来调用一些方法
+ });
+ },
+ watch: {
+ '$route'(to, from) {
+ // 路由变化时手动触发操作
+ this.getwallet()
+ }
},
methods: {
clickall(){
@@ -118,6 +131,7 @@
}
await getwalletGrther(data).then((res) => {
console.log(res);
+ this.usdcMoney = err.data
}).catch((err)=>{
console.log(err);
this.usdcMoney = err.data
@@ -164,29 +178,19 @@
newcurrency = 'usdc'
}
this.$router.push({
- path: "/Fundverification",
+ path: "/withdraw/securityVerification_zh",
query: {
currency: newcurrency,
fromTo: this.toptitle==(this.$t('资金')+this.$t('账户'))?'1':'2',
amount: this.amount
},
});
- // return
- // var data = {
- // currency: newcurrency,
- // fromTo: this.toptitle==(this.$t('资金')+this.$t('账户'))?'1':'2',
- // amount: this.amount
- // }
- // await walletGrthertransfer(data).then((res) => {
- // console.log(res);
- // });
},
async getwallet() {
await walletGrther().then((data) => {
- console.log(data.id);
+ this.usdcMoney = data.usdtMoney
}).catch((err)=>{
console.log(err.id);
- this.usdcMoney = err.usdtMoney
});
},
onClickLeft() {
--
Gitblit v1.9.3