Authored by Tao

modify channel

... ... @@ -28,7 +28,7 @@
<div ref="scrollNav" class="scroll-nav-wrap" v-if="!isShow && navList.length">
<ScrollNav :list="navList" :current="active" @transfer="getIndex"></ScrollNav>
</div>
<div class="list-wrap" :style="{minHeight: total + 'px'}">
<div class="list-wrap" :class="{'class-a':!isA}">
<ProductList ref="product" :list="productList.list" :yasParams="listYasParams" v-if="productList.list.length > 0"></ProductList>
<UfoNoItem class="channel-no-item" :tip="`暂无数据`" v-else></UfoNoItem>
</div>
... ... @@ -106,7 +106,9 @@ export default {
page: null, // 当前页号
coupon_token: null, // 优惠券token
},
selectedCategory: {}
selectedCategory: {},
height: 0,
isA: false,
};
},
computed: {
... ... @@ -262,10 +264,13 @@ export default {
let scrollY = -y;
// console.log(parseInt(scrollY));
// console.log(this.navTop);
console.log(this.navHeight);
if (scrollY >= this.navTop) {
this.isShow = true;
this.isA = false;
} else {
this.isShow = false;
this.isA = true;
}
}
},
... ... @@ -354,11 +359,6 @@ export default {
name: 'Search',
});
},
// getParams(params) {
// this.reportParams = params;
// console.log(this.reportParams);
// }
},
components: {
Swiper,
... ... @@ -508,4 +508,7 @@ input::-webkit-input-placeholder {
background: url(~statics/image/list/searchPage_icon@3x.png) no-repeat;
background-size: cover;
}
.class-a {
padding-top: 104px;
}
</style>
... ...