Bladeren bron

控制声音

wangxy 2 weken geleden
bovenliggende
commit
cdeaedbb2e

+ 1 - 1
pages/chaojidanci/newEnglish/components/mainCard.vue

@@ -10,7 +10,7 @@
 		</swiper-item>
 		<swiper-item>
 			<view class="swiper-item uni-bg-red">
-				<pinPageVue :active-word="activeWord" :active-words="activeWords" @play-audio="handlePlayAudio">
+				<pinPageVue :active-word="activeWord" :active-words="activeWords" @play-audio="handlePlayAudio"  @stop-audio="handleStopAudio">
 				</pinPageVue>
 			</view>
 		</swiper-item>

+ 1 - 0
pages/chaojidanci/newEnglish/components/pinPage.vue

@@ -119,6 +119,7 @@
 	}
 
 	function handleSelect(word,mIndex) {
+    emits('stop-audio');
     if (data.indexArr.some(ii => ii == mIndex)) {
       // 已选过 禁止再选
       return;