|
|
@ -66,81 +66,6 @@ |
|
|
|
this.word = uni.getStorageSync('word'); |
|
|
|
this.$walletUtil.initialWallet(this.word, e) |
|
|
|
console.log(123123) |
|
|
|
// let that=this |
|
|
|
// this.$api.getBtcBalance().then((res) => { |
|
|
|
// var b = res.data.data[0] |
|
|
|
// for (var k in b) { |
|
|
|
// that.btcBalance = b[k] |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// this.walletInfo.BTC[0].balance = this.btcBalance |
|
|
|
// this.walletInfo.BTC[0].coinList = [{ |
|
|
|
// name: "BTC", |
|
|
|
// name2: "BTC", |
|
|
|
// xname: 'Bitcoin', |
|
|
|
// icon: require('@/static/tongyonh/bye.png'), |
|
|
|
// balance: this.btcBalance |
|
|
|
// }]; |
|
|
|
|
|
|
|
// // this.$EthUtil.getBalance(eth.address,function(res){ |
|
|
|
// // eth.balance = res |
|
|
|
// // this.ethBbalance = res; |
|
|
|
// // }); |
|
|
|
// console.log(this.walletInfo.ETH[0].address,2222222) |
|
|
|
// this.$EthUtil.getBalance(this.walletInfo.ETH[0].address,function(res){ |
|
|
|
// console.log(res,787878) |
|
|
|
// that.walletInfo.ETH[0].balance = res |
|
|
|
// console.log(res,4444455555) |
|
|
|
// that.walletInfo.ETH[0].coinList = [ |
|
|
|
// { |
|
|
|
// name: "ETH", |
|
|
|
// name2: "ETH", |
|
|
|
// xname: 'Ethereum', |
|
|
|
// icon: require('@/static/tongyonh/Frame3299.png'), |
|
|
|
// balance: res |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name:"USDT", |
|
|
|
// name2:"ERC20-USDT", |
|
|
|
// xname:'Tether USD', |
|
|
|
// contractAddress:'0xdac17f958d2ee523a2206206994597c13d831ec7', |
|
|
|
// icon:require('@/static/tongyonh/img500.png'), |
|
|
|
// balance: 0 |
|
|
|
// } |
|
|
|
// ] |
|
|
|
|
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// this.$TronUtil.getTronBalance(this.walletInfo.TRON[0].address).then((res) => { |
|
|
|
// that.walletInfo.TRON[0].balance = res |
|
|
|
// that.walletInfo.TRON[0].coinList = [ |
|
|
|
// { |
|
|
|
// name: "TRX", |
|
|
|
// name2: "TRX", |
|
|
|
// xname: 'TRON', |
|
|
|
// icon: require('@/static/tongyonh/tron1.png'), |
|
|
|
// balance: res |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name:"USDT", |
|
|
|
// name2:"TRC20-USDT", |
|
|
|
// xname:'Tether USD', |
|
|
|
// contractAddress:'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', |
|
|
|
// icon:require('@/static/tongyonh/tether_usd.png') |
|
|
|
// } |
|
|
|
// ] |
|
|
|
|
|
|
|
|
|
|
|
// }).catch(err => { |
|
|
|
// console.log(err) |
|
|
|
// }) |
|
|
|
// setTimeout(()=>{ |
|
|
|
// uni.setStorageSync('ethi', 0); |
|
|
|
// uni.setStorageSync('itype', true); |
|
|
|
// uni.setStorageSync('walletInfo', this.walletInfo); |
|
|
|
// },1500) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 删除密码触发 |
|
|
|