Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
huangyCode
5 years ago
Committed by
shuaiguo
5 years ago
Commit
d29e0fd2714e84a43f2bf7c02fb985f6ef24cdb4
1 parent
929f307b
修改tab切上报
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
apps/components/layout/layout-scroll.vue
apps/pages/list/list.vue
apps/components/layout/layout-scroll.vue
View file @
d29e0fd
...
...
@@ -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});
...
...
apps/pages/list/list.vue
View file @
d29e0fd
...
...
@@ -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 {
...
...
Please
register
or
login
to post a comment