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
Tao
5 years ago
Commit
9d2c4f80b1e2dbc888002af131ab504ea41b6401
1 parent
c11ba704
add channel pullDownRefresh
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
apps/pages/home/channel/channel.vue
apps/pages/home/channel/channel.vue
View file @
9d2c4f8
...
...
@@ -9,6 +9,7 @@
@scroll="scrollHandler"
:options="options"
@pulling-up="onPullingUp"
@pulling-down="onPullingDown"
:data="productList.list">
<div class="channel-body" ref="body">
<div ref="topSource" class="channel-html">
...
...
@@ -53,10 +54,15 @@ export default {
data() {
return {
options: {
bounce: {
top: false
},
pullUpLoad: true
// bounce: {
// top: false
// },
scrollbar: true,
pullUpLoad: true,
pullDownRefresh: true,
pullDownRefresh: {
txt: '刷新成功',
}
},
scrollEvents: ['scroll'],
scrollY: 0,
...
...
@@ -129,7 +135,11 @@ export default {
this.params.isReset = false
await this.fetchProductList(this.params);
}
}
},
onPullingDown() {
this.params.isReset = true
this.fetchProductList(this.params);
},
},
components: {
Swiper,
...
...
Please
register
or
login
to post a comment