Skip to content
This repository was archived by the owner on Feb 5, 2023. It is now read-only.

Commit 62632d8

Browse files
committed
add: external link of scan tag
1 parent 48bd228 commit 62632d8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/components/NFT/NFTDetails.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
-5
21
<template>
32
<div class="details-container">
43
<h2>{{ details.name }} #{{ details.token_id }}</h2>
5-
<ScanTag :chain="chain" />
4+
<ScanTag
5+
:chain="chain"
6+
class="cursor-pointer"
7+
@click="toExternalLink(details.asset_contract?.address, details.token_id)"
8+
/>
69
<div>
710
<h3>Description</h3>
811
<p>{{ details.description }}</p>
@@ -40,6 +43,10 @@ import ScanTag from '@/components/NFT/ScanTag.vue';
4043
export default class NFTDetail extends Vue {
4144
details!: Object;
4245
chain!: String;
46+
47+
public toExternalLink(address: string, tokenId: string) {
48+
window.open(`https://opensea.io/assets/${address}/${tokenId}`);
49+
}
4350
}
4451
</script>
4552

src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default class Home extends Vue {
268268
}
269269
}
270270
271-
console.log(this.ethAddress);
271+
// console.log(this.ethAddress);
272272
const data = await RSS3.getAssetProfile(this.ethAddress);
273273
if (!data) {
274274
return;

src/views/NFTs.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export default class NFTs extends Vue {
121121
this.nftList = NFTList.filter((nft) => (!nft.tags || nft.tags.indexOf('pass:hidden') === -1) && nft.info).sort(
122122
(a, b) => this.getNFTOrder(a) - this.getNFTOrder(b),
123123
);
124-
console.log(this.nftList);
125124
}
126125
127126
private async getInfo(nft: RSS3Asset) {

0 commit comments

Comments
 (0)