...
|
...
|
@@ -18,7 +18,7 @@ |
|
|
{{slideIndex}}<span>/</span>{{data.blockList.length}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="praise-lottie">
|
|
|
<div v-show="onAnimation" class="praise-lottie">
|
|
|
<WidgetLottie ref="lottie" :options="lottieOptions"></WidgetLottie>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -58,7 +58,8 @@ export default { |
|
|
},
|
|
|
lottieOptions: {
|
|
|
animationData: lottieJson
|
|
|
}
|
|
|
},
|
|
|
onAnimation: false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
...
|
...
|
@@ -126,10 +127,12 @@ export default { |
|
|
},
|
|
|
praiseArticle(e) {
|
|
|
if (e.timeStamp - this._preTimeStamp < dblclickDdelay) {
|
|
|
this.onAnimation = true;
|
|
|
this._lottieTimer && clearTimeout(this._lottieTimer);
|
|
|
this.$refs.lottie.play();
|
|
|
this._lottieTimer = setTimeout(() => {
|
|
|
this.$refs.lottie.stop();
|
|
|
this.onAnimation = false;
|
|
|
}, 1000);
|
|
|
this.$emit('on-praise');
|
|
|
}
|
...
|
...
|
|