|
@@ -84,10 +84,12 @@ export default {
|
|
if (this.audio.playing) {
|
|
if (this.audio.playing) {
|
|
this.$refs.audio.pause();
|
|
this.$refs.audio.pause();
|
|
this.audio.playing = false;
|
|
this.audio.playing = false;
|
|
|
|
+ this.$emit("handleListenRead",false);
|
|
} else {
|
|
} else {
|
|
this.$refs.audio.play();
|
|
this.$refs.audio.play();
|
|
this.audio.playing = true;
|
|
this.audio.playing = true;
|
|
this.$emit("handleChangeStopAudio");
|
|
this.$emit("handleChangeStopAudio");
|
|
|
|
+ this.$emit("handleListenRead",true);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 点击 拖拽播放音频
|
|
// 点击 拖拽播放音频
|
|
@@ -174,6 +176,7 @@ export default {
|
|
});
|
|
});
|
|
_this.$refs.audio.addEventListener("ended", function () {
|
|
_this.$refs.audio.addEventListener("ended", function () {
|
|
_this.audio.playing = false;
|
|
_this.audio.playing = false;
|
|
|
|
+ _this.$emit("handleListenRead",false);
|
|
});
|
|
});
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
document
|
|
document
|