...
|
...
|
@@ -48,15 +48,14 @@ export default { |
|
|
},
|
|
|
methods: {
|
|
|
onScroll(pos) {
|
|
|
if (!this.$refs.scroll.pullDownRefresh) {
|
|
|
return;
|
|
|
}
|
|
|
if (this.$refs.scroll.beforePullDown) {
|
|
|
if (pos.y > 43) {
|
|
|
this.lottieBefore.goToAndStop(Math.abs(pos.y - 43) * 15);
|
|
|
if (this.lottieBefore && this.$refs.scroll.pullDownRefresh) {
|
|
|
if (this.$refs.scroll.beforePullDown) {
|
|
|
if (pos.y > 43) {
|
|
|
this.lottieBefore.goToAndStop(Math.abs(pos.y - 43) * 15);
|
|
|
}
|
|
|
} else {
|
|
|
this.lottieBefore.goToAndStop(0);
|
|
|
}
|
|
|
} else {
|
|
|
this.lottieBefore.goToAndStop(0);
|
|
|
}
|
|
|
this.$emit('scroll', pos);
|
|
|
},
|
...
|
...
|
|