<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<view class="title">{{eth}}</view>
		</view>
		<view class="title">{{trc}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				eth: '',
				trc: 'Hello',
				param : {
					'address':"0x5b1F11800D6DdD262A5Feda2Cc6e3256A905c280",
					'pageNum':1,
					'pageSize':10,
				},
			}
		},
		onLoad() {
			uni.request({
			    url: 'http://scan.weirui0755.com/btc/api/address/btc/'+this.param.address+'/'+this.param.pageNum+'/'+this.param.pageSize, //请求接口
			    header: {
			          'content-type': 'application/x-www-form-urlencoded',  //自定义请求头信息
			        },
			 success: (res) => {
									console.log(res,78978979)
			    }
			 });
	
			
			this.$EthUtil.getBalance('0x4f6742badb049791cd9a37ea913f2bac38d01279',function(b){
				console.log(b,'8888')
			});
			
			
			this.$TronUtil.getTronBalance('TGPirBtr42YvWtwDNgVEgv3YYhiCkE8hJq').then((res) => {
				console.log(res,'tron')
				this.trc = res
			}).catch(err => {
				console.log(err)
			})
			
		},
		methods: {
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
