You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.0 KiB
101 lines
2.0 KiB
<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> -->
|
|
<image :src="wallet.coinList[0].icon" mode="aspectFit" class="img"></image>
|
|
<text class="tex1">{{wallet.coinList[0].name}}</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.tonkenId}}
|
|
</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')
|
|
uni.navigateTo({
|
|
url:'/pages/menu/collection/collectionDetail/index'
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
|
|
</style>
|
|
|
|
<style>
|
|
@import './index.css';
|
|
</style>
|
|
|