|
|
@ -218,16 +218,26 @@ |
|
|
this.$EthUtil.getBalance(eth.address,function(res){ |
|
|
this.$EthUtil.getBalance(eth.address,function(res){ |
|
|
eth.balance = res |
|
|
eth.balance = res |
|
|
this.ethBbalance = res; |
|
|
this.ethBbalance = res; |
|
|
|
|
|
console.log(res,'手机eth的钱包余额') |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eth.coinList = [{ |
|
|
eth.coinList = [ |
|
|
|
|
|
{ |
|
|
name: "ETH", |
|
|
name: "ETH", |
|
|
name2: "ETH", |
|
|
name2: "ETH", |
|
|
xname: 'Ethereum', |
|
|
xname: 'Ethereum', |
|
|
icon: require('@/static/tongyonh/Frame3299.png'), |
|
|
icon: require('@/static/tongyonh/Frame3299.png'), |
|
|
balance: this.ethBbalance |
|
|
balance: this.ethBbalance |
|
|
}]; |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name:"USDT", |
|
|
|
|
|
name2:"ERC20-USDT", |
|
|
|
|
|
xname:'Tether USD', |
|
|
|
|
|
contractAddress:'0xdac17f958d2ee523a2206206994597c13d831ec7', |
|
|
|
|
|
icon:require('@/static/tongyonh/img500.png') |
|
|
|
|
|
} |
|
|
|
|
|
]; |
|
|
this.$store.commit('addEthi', 1) |
|
|
this.$store.commit('addEthi', 1) |
|
|
|
|
|
|
|
|
uni.setStorageSync('walleti', eth.privateKey) |
|
|
uni.setStorageSync('walleti', eth.privateKey) |
|
|
@ -278,17 +288,27 @@ |
|
|
this.$TronUtil.getTronBalance(tron.address).then((res) => { |
|
|
this.$TronUtil.getTronBalance(tron.address).then((res) => { |
|
|
tron.balance = res |
|
|
tron.balance = res |
|
|
this.trxBbalance = res |
|
|
this.trxBbalance = res |
|
|
|
|
|
console.log(res,'手机tron的钱包余额') |
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
tron.coinList = [{ |
|
|
tron.coinList = [ |
|
|
|
|
|
{ |
|
|
name: "TRX", |
|
|
name: "TRX", |
|
|
name2: "TRX", |
|
|
name2: "TRX", |
|
|
xname: 'TRON', |
|
|
xname: 'TRON', |
|
|
icon: require('@/static/tongyonh/tron1.png'), |
|
|
icon: require('@/static/tongyonh/tron1.png'), |
|
|
balance: this.trxBbalance |
|
|
balance: this.trxBbalance |
|
|
}]; |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name:"USDT", |
|
|
|
|
|
name2:"TRC20-USDT", |
|
|
|
|
|
xname:'Tether USD', |
|
|
|
|
|
contractAddress:'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', |
|
|
|
|
|
icon:require('@/static/tongyonh/tether_usd.png') |
|
|
|
|
|
} |
|
|
|
|
|
]; |
|
|
console.log(this.$store.state.troni, 555566565) |
|
|
console.log(this.$store.state.troni, 555566565) |
|
|
// 增加钱包位置 |
|
|
// 增加钱包位置 |
|
|
this.$store.commit('addTroni', 1) |
|
|
this.$store.commit('addTroni', 1) |
|
|
|