From 1e05eb5e865e3c75adf59b1263491a90ba6e0584 Mon Sep 17 00:00:00 2001
From: cebgcontract <99630598+cebgcontract@users.noreply.github.com>
Date: Tue, 12 Apr 2022 14:53:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9nft=E8=AF=A6=E6=83=85?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/market/NftDetail.vue | 78 +++++++++++++--------
src/types/Nft.ts | 103 ++++++++++++++++++++++++++++
src/views/desktop/Item.vue | 65 ++----------------
3 files changed, 157 insertions(+), 89 deletions(-)
create mode 100644 src/types/Nft.ts
diff --git a/src/components/market/NftDetail.vue b/src/components/market/NftDetail.vue
index 5f71e8d..39292bd 100644
--- a/src/components/market/NftDetail.vue
+++ b/src/components/market/NftDetail.vue
@@ -7,13 +7,13 @@
Back
-
#{{data.id}}
+
#{{nftData.id}}
-
![]()
-
{{data.name}}
+
![]()
+
{{nftData.name}}
- LV.{{data.info.level}}
+ LV.{{nftData.level}}
@@ -33,7 +33,7 @@
-
#{{data.id}}
+
#{{nftData.id}}
@@ -44,27 +44,27 @@
HP
-
{{data.info.hp}}
+
{{nftData.attrMap.get('hp')}}
Speed
-
{{data.info.speed}}
+
{{nftData.attrMap.get('speed')}}
Attack
-
{{data.info.atk}}
+
{{nftData.attrMap.get('atk')}}
Defence
-
{{data.info.def}}
+
{{nftData.attrMap.get('def')}}
Advanced Count
-
{{data.info.advancedCount}}
+
{{nftData.attrMap.get('advanced_count')}}
@@ -83,11 +83,11 @@
Lucky
-
{{data.info.lucky}}
+
{{nftData.attrMap.get('lucky')}}
Success Rate
-
{{data.info.successRate}}
+
{{nftData.attrMap.get('success_rate')}}
@@ -96,7 +96,24 @@
-
+
+
+
+
+ More Data
+
+
+
+
{{data.key}}
+
{{data.value}}
+
+
+
+
+
+
+
+
@@ -105,8 +122,8 @@
-
{{data.currency}}
-
{{data.priceDiscount}}
+
{{nftData.priceInfo.currency}}
+
{{nftData.priceInfo.priceDiscount}}
@@ -115,7 +132,7 @@
-
+

@@ -125,34 +142,29 @@
-
![]()
+