Browse Source

12.1

master
Dread 4 years ago
parent
commit
f8a7793cdf
  1. 13
      pages/menu/sendToken/transfer/index.vue

13
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();
}
};
</script>

Loading…
Cancel
Save