|
|
@ -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> |
|
|
|