| | |
| | | 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(){ |
| | |
| | | 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 = err.usdtMoney |
| | | this.usdcMoney = data.usdtMoney |
| | | }).catch((err)=>{ |
| | | console.log(err.id); |
| | | this.usdcMoney = err.usdtMoney |
| | | }); |
| | | }, |
| | | onClickLeft() { |