<template>
	<view class="maintoP">
		<navigation :showBack="true" :bgnum="true" class="aaa">
		<text class="big_title">
	Collection details
		</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">
			Contract address
		</view>
		<view class="text1one">
			{{item.contract}}
		</view>
	</view>
	<view class="item">
		<view class="title">
			Token ID
		</view>
	<view class="text1one">
			{{item.tonkenId}}
	</view>
	</view>
	<view class="btn" @click="test">
		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:{},
				 // nftContrct:{
					//  // 	[
					//  // 		{
					 			
					//  // 		}
					//  // 	]
					//  },
			}
		},
	
		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>
