| | |
| | | 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"; |
| | |
| | | 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(){ |
| | |
| | | } |
| | | await getwalletGrther(data).then((res) => { |
| | | console.log(res); |
| | | this.usdcMoney = err.data |
| | | }).catch((err)=>{ |
| | | console.log(err); |
| | | this.usdcMoney = err.data |
| | |
| | | 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() { |