<template>
	<view class="box-data">
		<Nav title="首页"></Nav>
<!--		<view class="border-item"></view>-->
<!--		<enInput v-model="text" label="姓名姓名"></enInput>-->



		<view class="" @click="toList()">进入列表演示</view>
    <view>
      <button @click="test" style="background-color: #DD524D;color: #FFFFFF;width: 80%;margin-top: 50rpx">确定</button>
<!--      <button class="box-but" style="background-color: #DD524D;color: #FFFFFF">确定</button>-->
    </view>

	</view>

</template>
<script>
	import enInput from "components/en-from/en-input/en-input"
	import enSend from "components/en-from/en-send/en-send"
	import enCheckbox from "components/en-from/en-checkbox/en-checkbox"
	import enRadio from "components/en-from/en-radio/en-radio"
	import enSwitch from "components/en-from/en-switch/en-switch"
	import enTextarea from "components/en-from/en-textarea/en-textarea"
	import enDate from "components/en-from/en-date/en-date"
	import enHeadImg from "components/en-from/en-head/en-head-img"
	import enUpload from "components/en-from/en-upload/en-upload"
	import enSelect from "components/en-from/en-select/en-select"
  import bitkeepTron from "../../common/wallet/bitkeep-wallet/bitkeep-tron";

	export default {
		components: {
      enSelect,
      enUpload,
			enDate,
		 enTextarea,
		 enSwitch,
			enRadio,
			enCheckbox,
			enInput,
			enSend,
			enHeadImg
		},
		data() {
			return {

      }

		},
		watch: {

		},

		mounted() {

		},
		methods: {
      test(){
       bitkeepTron.getAccounts().then((Address)=>{
         console.log('---------------------')
         console.log(Address)
         bitkeepTron.getBalance().then((res)=>{
           console.log(res)
         })
       })
      },
			getCode() {

			},
			toList() {
				uni.navigateTo({
					url: '/pages/text/index'
				})
			},

		},
	}
</script>
<style lang="scss" scoped>
	.border-item {
		border-bottom: 2rpx solid #F0F0F0;
	}

	.box-data {
   height: 100vh;
		padding: 32rpx 32rpx 0;
		background-color: #fff;
    .box-but{
      //position: fixed;
      width: 80%;
      //left: 10%;
      bottom: 40rpx;
    }
	}

</style>
