Authored by huangyCode

修改tab切上报

... ... @@ -72,12 +72,14 @@ export default {
this.scrollTimer && clearTimeout(this.scrollTimer);
this.scrollTimer = setTimeout(this.onScrollEnd.bind(this), 400);
if(!this.loading || !this.loading.noMore) {
if (!this.loading || !this.loading.noMore) {
if (this.scrollHeight - top < this.$el.offsetHeight * 2) {
this._onPullingUp();
}
}
},
getScrollTop() {
return this.$el.scrollTop;
},
onScrollEnd() {
this.$emit('scroll-end', {y: -this.$el.scrollTop});
... ...
... ... @@ -207,6 +207,8 @@ export default {
// 点击tab flag, 0: 推荐, 1: 价格, 2: 人气, 3: 新品
async pressType(flag) {
let yasEventFlag = this.$refs.scroll.getScrollTop();
if (flag === this.selectedType && flag !== 1) {
return;
}
... ... @@ -243,6 +245,9 @@ export default {
this.changeArrow();
this.yasShowPage();
this.yasTab();
if (yasEventFlag === 0) {
this.$refs.product.yasShowEvent(0);
}
},
goSearch() {
this.yasGoSearch();
... ... @@ -348,7 +353,6 @@ export default {
z-index: 999;
background: #fff;
position: absolute;
z-index: 1;
}
.filter-tab {
... ...