|
@@ -8,6 +8,7 @@
|
|
|
<template v-for="item in data.wordList">
|
|
<template v-for="item in data.wordList">
|
|
|
<mainCardVue :active-word="data.activeWord" :pageData="data" :active-words="activeWords"
|
|
<mainCardVue :active-word="data.activeWord" :pageData="data" :active-words="activeWords"
|
|
|
@play-audio="handlePlayAudio" @goXiangjie="goXiangjie" @swiper-change="handleSwiperChange"
|
|
@play-audio="handlePlayAudio" @goXiangjie="goXiangjie" @swiper-change="handleSwiperChange"
|
|
|
|
|
+ @stop-audio="handleStopAudio"
|
|
|
:is-playing="isAudioPlaying" v-if="item.id == data.activeId" :key="item.id">
|
|
:is-playing="isAudioPlaying" v-if="item.id == data.activeId" :key="item.id">
|
|
|
</mainCardVue>
|
|
</mainCardVue>
|
|
|
</template>
|
|
</template>
|
|
@@ -258,6 +259,12 @@ async function handlePlayAudio({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+function handleStopAudio() {
|
|
|
|
|
+ AudioP.stop();
|
|
|
|
|
+ isAudioPlaying.value = false;
|
|
|
|
|
+ uni.$emit('danci-audio-ended');
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|