|
|
<template>
|
|
|
<LayoutApp :show-back="true" :hide-header="hideHeader">
|
|
|
<div class="fixed-nav" v-if="isShow && navList.length">
|
|
|
<ScrollNav :list="navList" :current="active"></ScrollNav>
|
|
|
<LayoutApp class="yohoufo-channel-page" :show-back="true" :hide-header="hideHeader">
|
|
|
<div class="fixed-nav scroll-nav-wrap" v-if="isShow && navList.length">
|
|
|
<ScrollNav :list="navList" :current="active" @transfer="getIndex"></ScrollNav>
|
|
|
</div>
|
|
|
<Scroll
|
|
|
ref="scroll"
|
...
|
...
|
@@ -19,11 +19,11 @@ |
|
|
<TwoBanner :list="item.data" :key="index" v-if="item.template_name == 'twoPicture'"/>
|
|
|
</template>
|
|
|
</div>
|
|
|
<div ref="scrollNav" v-if="navList.length">
|
|
|
<div ref="scrollNav" class="scroll-nav-wrap" v-if="navList.length">
|
|
|
<ScrollNav :list="navList" :current="active" @transfer="getIndex"></ScrollNav>
|
|
|
</div>
|
|
|
<div :style="{minHeight: total + 'px'}">
|
|
|
<ProductList :list="productList.list" v-if="productList.list.length > 0" class="bgColor"></ProductList>
|
|
|
<div class="list-wrap" :style="{minHeight: total + 'px'}">
|
|
|
<ProductList :list="productList.list" v-if="productList.list.length > 0"></ProductList>
|
|
|
<UfoNoItem :tip="`暂无数据`" v-else></UfoNoItem>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -135,35 +135,28 @@ export default { |
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.fixed-nav {
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
z-index: 10;
|
|
|
background-color: antiquewhite;
|
|
|
}
|
|
|
.scroll-app {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
overflow: hidden;
|
|
|
font-size: 0.6rem;
|
|
|
display: -webkit-box;
|
|
|
display: -webkit-flex;
|
|
|
display: flex;
|
|
|
-webkit-box-orient: vertical;
|
|
|
-webkit-box-direction: normal;
|
|
|
-webkit-flex-direction: column;
|
|
|
flex-direction: column;
|
|
|
.yohoufo-channel-page {
|
|
|
background-color: #fefefe;
|
|
|
}
|
|
|
|
|
|
.scroll-flex {
|
|
|
-webkit-box-flex: 1;
|
|
|
-webkit-flex: 1;
|
|
|
flex: 1;
|
|
|
overflow: hidden;
|
|
|
.scroll-nav-wrap {
|
|
|
position: relative;
|
|
|
|
|
|
&:after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 0;
|
|
|
box-shadow: 0 0 120px 100px #f2f2f2;
|
|
|
}
|
|
|
|
|
|
&.fixed-nav {
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
z-index: 10;
|
|
|
background-color: #fefefe;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.channel-body {
|
...
|
...
|
@@ -182,7 +175,7 @@ export default { |
|
|
}
|
|
|
|
|
|
.channel-html {
|
|
|
padding: 20px 32px 0;
|
|
|
padding: 20px 24px 0;
|
|
|
|
|
|
&:before {
|
|
|
content: "";
|
...
|
...
|
@@ -206,7 +199,12 @@ export default { |
|
|
}
|
|
|
}
|
|
|
|
|
|
.bgColor {
|
|
|
background: #f5f5f5;
|
|
|
.list-wrap {
|
|
|
background: #f2f2f2;
|
|
|
|
|
|
/deep/ .item {
|
|
|
position: relative;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
}
|
|
|
</style> |
...
|
...
|
|