修改个人资产滚动
This commit is contained in:
parent
1e7552dfd6
commit
d3d481fb53
@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="assets-content">
|
<div class="assets-content">
|
||||||
|
<div class="assets-user">
|
||||||
|
<div class="assets-user-img">
|
||||||
|
<img src="" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="assets-user-name">adderss</div>
|
||||||
|
</div>
|
||||||
<div class="assets-content-nav">
|
<div class="assets-content-nav">
|
||||||
<li :class="{ active: navIndex == index}" v-for="(item, index) in navList" :key="index" @click="navTable(index)">
|
<li :class="{ active: navIndex == index}" v-for="(item, index) in navList" :key="index" @click="navTable(index)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
@ -60,6 +66,10 @@ const clearHeroAll = () => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: -600px;
|
top: -600px;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
.assets-user {
|
||||||
|
.assets-user-img {}
|
||||||
|
.assets-user-name {}
|
||||||
|
}
|
||||||
.assets-content-nav {
|
.assets-content-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mkt-content">
|
<div class="mkt-content">
|
||||||
<div class="content"></div>
|
|
||||||
<div class="mkt-content-left">
|
<div class="mkt-content-left">
|
||||||
<OverView :overviewValue="marketplaceList.overview" @clickOverviewChild="overviewChild" />
|
<OverView :overviewValue="marketplaceList.overview" @clickOverviewChild="overviewChild" />
|
||||||
<Sort @clickSortChild="sortChild" />
|
<Sort @clickSortChild="sortChild" />
|
||||||
@ -61,7 +60,7 @@
|
|||||||
<li v-if="isClearAll" class="clear-all" @click="clearAll">Clear All</li>
|
<li v-if="isClearAll" class="clear-all" @click="clearAll">Clear All</li>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mkt-content-right-content">
|
<div class="mkt-content-right-content" ref="contentScroll">
|
||||||
<div class="pages" v-if="nftList != undefined && nftList.length > 0">
|
<div class="pages" v-if="nftList != undefined && nftList.length > 0">
|
||||||
<li v-for="(item, index) in nftList" :key="index">
|
<li v-for="(item, index) in nftList" :key="index">
|
||||||
<Card v-if="nftList != undefined || nftList.length > 0" @renewNft="renewNft" :nftData="item" />
|
<Card v-if="nftList != undefined || nftList.length > 0" @renewNft="renewNft" :nftData="item" />
|
||||||
@ -102,8 +101,8 @@ const marketplaceList = useMarketplaceStore()
|
|||||||
|
|
||||||
const loadingDialogVisible = ref(false)
|
const loadingDialogVisible = ref(false)
|
||||||
const nftList = ref([])
|
const nftList = ref([])
|
||||||
|
|
||||||
const isClearAll = ref(false)
|
const isClearAll = ref(false)
|
||||||
|
const contentScroll = ref()
|
||||||
|
|
||||||
const clearOverviewAll = () => {
|
const clearOverviewAll = () => {
|
||||||
marketplaceList.overview = ''
|
marketplaceList.overview = ''
|
||||||
@ -244,6 +243,9 @@ watch(() => [marketplaceList.overview,marketplaceList.sort,marketplaceList.minPr
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 滚动条变化修改游标
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getHeroData()
|
getHeroData()
|
||||||
})
|
})
|
||||||
@ -252,15 +254,21 @@ onMounted(() => {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.mkt-content {
|
.mkt-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
top: -600px;
|
|
||||||
left: 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
background: #16141b;
|
||||||
|
box-shadow: 0 -30px 30px #16141b;
|
||||||
.mkt-content-left {
|
.mkt-content-left {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
height: 100vh;
|
||||||
padding: 0 35px;
|
padding: 0 35px;
|
||||||
|
padding-top: 100px;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
h2 {
|
h2 {
|
||||||
font-family: "Poppins";
|
font-family: "Poppins";
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -271,11 +279,15 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
.mkt-content-right {
|
.mkt-content-right {
|
||||||
width: calc(100% - 300px);
|
width: calc(100% - 300px);
|
||||||
// box-sizing: border-box;
|
|
||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
|
margin-left: 40px;
|
||||||
.mkt-content-right-header {
|
.mkt-content-right-header {
|
||||||
width: calc(100% - 10px);
|
width: calc(100% - 10px);
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
// position: -webkit-sticky;
|
||||||
|
// position: sticky;
|
||||||
|
// top: 0;
|
||||||
|
// padding-top: 120px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom: 2px solid #3a3b57;
|
border-bottom: 2px solid #3a3b57;
|
||||||
@ -314,12 +326,10 @@ onMounted(() => {
|
|||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
.pages {
|
.pages {
|
||||||
display: flex;
|
display: flex;
|
||||||
// justify-content: space-between;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
clear: both;
|
clear: both;
|
||||||
li {
|
li {
|
||||||
width: calc(25% - 10px);
|
width: calc(25% - 10px);
|
||||||
// height: 360px;
|
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="market" ref="market" :style="{overflow: marketOverflow}">
|
<div class="market" ref="market">
|
||||||
<MktHeader />
|
<!-- <MktHeader /> -->
|
||||||
|
<div class="header"></div>
|
||||||
<!-- <MktContent @wheel="handleScroll" :style="{ position: isFixed, top: 90+ 'px', }" ref="marketplaceContent" /> -->
|
<!-- <MktContent @wheel="handleScroll" :style="{ position: isFixed, top: 90+ 'px', }" ref="marketplaceContent" /> -->
|
||||||
<MktContent />
|
<div class="content">
|
||||||
|
<MktContent />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -45,6 +48,15 @@ onUnmounted(() => {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.market {
|
.market {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// height: 100vh;
|
// background:#16141b;
|
||||||
|
.header {
|
||||||
|
height: 480px;
|
||||||
|
background: url('@/assets/img/marketplace/rolesbg.png') no-repeat;
|
||||||
|
background-size: 100% 100
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
// position: relative;
|
||||||
|
// top: -100px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user