diff --git a/pages/menu/sendToken/transfer/index.vue b/pages/menu/sendToken/transfer/index.vue index d24fb72..361998b 100644 --- a/pages/menu/sendToken/transfer/index.vue +++ b/pages/menu/sendToken/transfer/index.vue @@ -246,6 +246,7 @@ export default { data() { return { + userObj: {}, coin: {}, fee: 0, show: false, @@ -280,7 +281,17 @@ return this.$t('index') }, }, + // onShow() { + // this.timer = setInterval(() => { + // this.updateBalance(); + // }, 5000) + // }, methods: { + async updateBalance() { + this.userObj = await this.$walletUtil.updateBalance(); + this.coin.balance=this.userObj.balance + console.log(this.userObj,454545454) + }, sendTransaction() { let that = this; if (this.coin.type === 'ETH') { @@ -677,7 +688,7 @@ this.price = (this.coin.balanceCnyPrice / this.coin.balance).toFixed(2) } } - + this.updateBalance(); } };