This repository was archived by the owner on Feb 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- -5
2
1
<template >
3
2
<div class =" details-container" >
4
3
<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
+ />
6
9
<div >
7
10
<h3 >Description</h3 >
8
11
<p >{{ details.description }}</p >
@@ -40,6 +43,10 @@ import ScanTag from '@/components/NFT/ScanTag.vue';
40
43
export default class NFTDetail extends Vue {
41
44
details! : Object ;
42
45
chain! : String ;
46
+
47
+ public toExternalLink(address : string , tokenId : string ) {
48
+ window .open (` https://opensea.io/assets/${address }/${tokenId } ` );
49
+ }
43
50
}
44
51
</script >
45
52
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ export default class Home extends Vue {
268
268
}
269
269
}
270
270
271
- console .log (this .ethAddress );
271
+ // console.log(this.ethAddress);
272
272
const data = await RSS3 .getAssetProfile (this .ethAddress );
273
273
if (! data ) {
274
274
return ;
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ export default class NFTs extends Vue {
121
121
this .nftList = NFTList .filter ((nft ) => (! nft .tags || nft .tags .indexOf (' pass:hidden' ) === - 1 ) && nft .info ).sort (
122
122
(a , b ) => this .getNFTOrder (a ) - this .getNFTOrder (b ),
123
123
);
124
- console .log (this .nftList );
125
124
}
126
125
127
126
private async getInfo(nft : RSS3Asset ) {
You can’t perform that action at this time.
0 commit comments