-
+
@@ -18,27 +18,26 @@
{{ nftData.nft.owner_address.substr(0,6) }}...{{ nftData.nft.owner_address.substr(-6) }}
-
\ No newline at end of file
diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue
index 5d47272..e9a21c6 100644
--- a/src/components/layout/NavBar.vue
+++ b/src/components/layout/NavBar.vue
@@ -159,7 +159,7 @@ const formatAddress = computed(() => {
const accountId = localStorage.getItem('assessAddress');
if (!accountId) return "-";
if (accountId.length >= 10) {
- return `${accountId.substring(0, 6)}......${accountId.slice(-4)}`;
+ return `${accountId.substring(0, 6)}......${accountId.slice(-6)}`;
}
return accountId;
});
@@ -254,6 +254,10 @@ const immuTableLogin = async () => {
const immuTableLogout = async () => {
try {
+ localStorage.removeItem('assessToken')
+ localStorage.removeItem('assessAddress')
+ immutableStore.accessToken = ''
+ immutableStore.accounts = ''
await new PassportWallet().logout()
} catch (e) {
console.log(e)
@@ -271,7 +275,7 @@ const myCart = async () => {
}
watch(() => route.path,(newPath, oldPath) => {
- if(newPath == '/marketplace' || newPath == '/assets') {
+ if(newPath == '/marketplace' || newPath == '/assets' || newPath == '/detail') {
isCart.value = true
} else {
isCart.value = false
@@ -482,6 +486,7 @@ watch(() => route.path,(newPath, oldPath) => {
justify-content: center;
align-items: center;
// right: 11px;
+ margin-right: 50px;
.metaMask-logo {
width: 60px;
@@ -643,7 +648,7 @@ watch(() => route.path,(newPath, oldPath) => {
}
}
.cart-con {
- position: absolute;
+ position: fixed;
right: 0;
top: 84px;
background: #1e1b23;
diff --git a/src/utils/marketplace.js b/src/utils/marketplace.js
index 3953bfd..5997d1d 100644
--- a/src/utils/marketplace.js
+++ b/src/utils/marketplace.js
@@ -65,7 +65,7 @@ export const apiMarketplaceState = async () => {
// 详情
export const apiDetail = async (account_address) => {
const url = `/api/market/transaction/history/${net_id}/${account_address}`
- return httpGet(url, {data})
+ return httpGet(url, {})
}
// 获取购物车列表
diff --git a/src/views/DetailView.vue b/src/views/DetailView.vue
index ed6af74..f70cea5 100644
--- a/src/views/DetailView.vue
+++ b/src/views/DetailView.vue
@@ -19,14 +19,14 @@
Price

-
Time remaining: 6d:10h:22m
+
Time remaining:
-
0.01
+
{{ priceWei(detailData.nftData.event.data.buy[0].amount) }}

-
($ 37.64)
+
( $ 37.64 )
@@ -37,24 +37,34 @@
3、购买
4、
-->
- {{ detailData.nftData.nft }}
-