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 | 33 ++++++++++++++++++++-------------
1 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/src/page/transfer.vue b/src/page/transfer.vue
index aace8ec..935ce35 100644
--- a/src/page/transfer.vue
+++ b/src/page/transfer.vue
@@ -81,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(){
@@ -115,6 +131,7 @@
}
await getwalletGrther(data).then((res) => {
console.log(res);
+ this.usdcMoney = err.data
}).catch((err)=>{
console.log(err);
this.usdcMoney = err.data
@@ -161,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