128 lines
2.7 KiB
Vue
128 lines
2.7 KiB
Vue
<template>
|
|
<div class="assets-content">
|
|
<div class="assets-content-nav">
|
|
<li :class="{ active: navIndex == index}" v-for="(item, index) in navList" :key="index" @click="navTable(index)">
|
|
{{ item.name }}
|
|
</li>
|
|
</div>
|
|
<div class="content">
|
|
<Collectibles v-show="navIndex == 0" />
|
|
<Hanging v-show="navIndex == 1" />
|
|
<Trading v-show="navIndex == 2" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref, onMounted } from "vue"
|
|
import OverView from "@/components/common/searchView/Overview.vue"
|
|
import Status from "@/components/common/searchView/status.vue"
|
|
import Collectibles from "./collectibles.vue"
|
|
import Hanging from "./hanging.vue"
|
|
import Trading from "./trading.vue"
|
|
import { useMarketplaceStore } from "@/store/marketplace"
|
|
|
|
const marketplaceList = useMarketplaceStore()
|
|
|
|
const navList = ref([
|
|
{
|
|
name: "NFTs"
|
|
},
|
|
{
|
|
name: "Listings"
|
|
},
|
|
{
|
|
name: "Trading History"
|
|
},
|
|
])
|
|
const navIndex = ref(0)
|
|
const nftList = ref([])
|
|
|
|
const navTable = (i) => {
|
|
navIndex.value = i
|
|
window.scrollTo(0, 0)
|
|
}
|
|
|
|
const filterList = ref([])
|
|
|
|
const clearOverviewAll = () => {
|
|
marketplaceList.overview = ''
|
|
}
|
|
|
|
const clearHeroAll = () => {
|
|
marketplaceList.status = ''
|
|
}
|
|
|
|
onMounted(() => {
|
|
})
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.assets-content {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #16141b;
|
|
box-shadow: 0 -80px 80px #16141b;
|
|
.assets-content-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 35px;
|
|
position: sticky;
|
|
top: 84px;
|
|
z-index: 1;
|
|
li {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 40px;
|
|
padding: 5px 15px;
|
|
text-align: center;
|
|
background: #363142;
|
|
color: #fff;
|
|
border-radius: 20px 20px 0 0;
|
|
margin-right: 10px;
|
|
font-size: 26px;
|
|
font-weight: bold;
|
|
font-family: 'Poppins';
|
|
cursor: pointer;
|
|
}
|
|
.active {
|
|
background: #ffc35b;
|
|
color: #000;
|
|
}
|
|
}
|
|
.content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding-top: 46px;
|
|
.content-right {
|
|
width: calc(100% - 300px);
|
|
padding-right: 40px;
|
|
.content-right-header {
|
|
width: calc(100% - 10px);
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 2px solid #3a3b57;
|
|
.bg-cor {
|
|
width: 15px;
|
|
height: 15px;
|
|
background: #18ff00;
|
|
margin-left: 10px;
|
|
border-radius: 50%;
|
|
}
|
|
.results-total {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 15px;
|
|
font-size: 14px;
|
|
color: #b3b5da;
|
|
}
|
|
}
|
|
.content-right-content {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |