...
|
...
|
@@ -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,
|
...
|
...
|
|