From 2d9c8ba3af5d390ad47ceebd65c790b8cdcd3948 Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Wed, 3 Jul 2024 21:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/confirmDialog.vue | 4 +- src/components/Dialogs/sellDialog.vue | 6 ++- src/components/assets/assetsContent.vue | 6 +-- src/components/assets/collectibles.vue | 2 +- src/components/assets/myCard.vue | 36 ++++++++++--- src/components/common/hangingCard.vue | 4 +- src/components/common/searchView/Overview.vue | 2 +- .../common/searchView/nftStatusRadio.vue | 54 +++++++++++++++++++ .../common/searchView/statusRadio.vue | 4 +- src/components/common/tradingCard.vue | 4 +- src/configs/configchain.js | 2 +- src/views/DetailView.vue | 36 ++++++++++--- vite.config.js | 1 + 13 files changed, 133 insertions(+), 28 deletions(-) create mode 100644 src/components/common/searchView/nftStatusRadio.vue diff --git a/src/components/Dialogs/confirmDialog.vue b/src/components/Dialogs/confirmDialog.vue index 865ecc0..6a59c5a 100644 --- a/src/components/Dialogs/confirmDialog.vue +++ b/src/components/Dialogs/confirmDialog.vue @@ -110,7 +110,9 @@ function hideModal(result = null) { } } .cf-content-text { - width: 80%; + width: 75%; + margin: 0 auto; + margin-top: 10px; text-align: left; .cf-text { font-family: 'Poppins'; diff --git a/src/components/Dialogs/sellDialog.vue b/src/components/Dialogs/sellDialog.vue index 91c552e..86d6868 100644 --- a/src/components/Dialogs/sellDialog.vue +++ b/src/components/Dialogs/sellDialog.vue @@ -186,8 +186,10 @@ const sellConfirm = async () => { currencyAmount: ethers.utils.parseEther(totalPrice(priceValue.value)).toString(), orderExpiry: orderData, }; - const bc = new BlockChain(); + console.log(data) + // return try { + const bc = new BlockChain(); let res = await bc.market.beginSellERC721(data); if (res.result) { let timer = setTimeout(() => { @@ -197,7 +199,7 @@ const sellConfirm = async () => { }, 2000); } } catch (e) { - console.log(e.message) + console.log(e) message.error("Your product failed to be listed"); } } else { diff --git a/src/components/assets/assetsContent.vue b/src/components/assets/assetsContent.vue index 9c6a74a..4e56941 100644 --- a/src/components/assets/assetsContent.vue +++ b/src/components/assets/assetsContent.vue @@ -26,13 +26,13 @@ const marketplaceList = useMarketplaceStore() const navList = ref([ { - name: "Collectibles" + name: "NFTs" }, { - name: "Hanging list" + name: "Listings" }, { - name: "Trading history" + name: "Trading History" }, ]) const navIndex = ref(0) diff --git a/src/components/assets/collectibles.vue b/src/components/assets/collectibles.vue index a04cbac..9452d79 100644 --- a/src/components/assets/collectibles.vue +++ b/src/components/assets/collectibles.vue @@ -31,7 +31,7 @@ + + diff --git a/src/components/common/searchView/statusRadio.vue b/src/components/common/searchView/statusRadio.vue index 480b4cd..1e6c056 100644 --- a/src/components/common/searchView/statusRadio.vue +++ b/src/components/common/searchView/statusRadio.vue @@ -3,8 +3,8 @@

Status

All - Listed - Unlisted + Sale + Purchase diff --git a/src/components/common/tradingCard.vue b/src/components/common/tradingCard.vue index 49aaf97..cad4b3a 100644 --- a/src/components/common/tradingCard.vue +++ b/src/components/common/tradingCard.vue @@ -41,7 +41,7 @@ - + - +