Authored by huangyCode

切换筛选条件添加置顶效果

... ... @@ -132,6 +132,7 @@ export default {
});
params.isReset = true;
this.$parent.fetchList(params);
this.$parent.$refs.scroll.scrollTo(0, 0, 300)
this.hide();
},
... ...
... ... @@ -18,7 +18,7 @@
<div class="search-img" @click="goSearch()"></div>
</div>
</div>
<Scroll class="product-list" v-show="!productList.isEmpty"
<Scroll ref="scroll" class="product-list" v-show="!productList.isEmpty"
:options="scrollOptions"
:data="productList.list"
@pulling-up="onPullingUp">
... ... @@ -201,6 +201,7 @@ export default {
}
params.isReset = true;
this.fetchList(params);
this.$refs.scroll.scrollTo(0, 0, 300)
this.changeArrow();
},
goSearch() {
... ...