<template>
	<view class="maintoP">
		<navigation :showBack="true" :bgnum="true" class="aaa">
		<text class="big_title">
	{{i18n.Collectiondetails}}
		</text>
		</navigation>
		<view class="main">
   <view class="main_con">
   	<view class="item">
   		<view class="imgcon flex2">
   			<image :src="item.chainIconUrl" mode="aspectFit" class="img"></image>
			<text class="tex1">{{wallet.coinList[0].name2}}</text>
   		</view>
		<view class="text1one">
				{{item.address}}
		</view>
   	</view>
	<view class="item">
		<view class="title">
			{{i18n.Contractaddress}}
		</view>
		<view class="text1one">
			{{item.contract}}
		</view>
	</view>
	<view class="item">
		<view class="title">
			{{i18n.TokenID}}
		</view>
	<view class="text1one">
			{{item.id}}
	</view>
	</view>
	<view class="btn" @click="test">
		{{i18n.Confirm}}
	</view>
   </view>

		</view>
	
	</view>
</template>

<script>
	import cont from "@/components/navigation/navigation.vue"
	import token from "@/utils/TokenUtil"
	export default {
		data() {
			return {
				wallet:{},
				nftIndex:0,
				walletInfo:{},
			}
		},
	computed: {
					i18n() {
						return this.$t('index')
					},
				},
		onLoad() {
			console.log(uni.getStorageSync('nftOneItem'),4444)
			this.item=uni.getStorageSync('nftOneItem')
	
		if(uni.getStorageSync('wallet')){
			this.wallet=uni.getStorageSync('wallet')
			this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
				.substring(25, this.wallet.address.length);
			
		}else{
			this.wallet=uni.getStorageSync('walletInfo').BTC[0]
			this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
			console.log(this.wallet,111)
		}
	

		},
		methods: {
		test(){
			this.nftIndex=uni.getStorageSync('nftIndex')
			}
	
			
	
	
		}

	

	};
</script>
<style scoped>

</style>

<style>
	@import './index.css';
</style>
