wangxy 2 هفته پیش
والد
کامیت
cdeaedbb2e
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      pages/chaojidanci/newEnglish/components/mainCard.vue
  2. 1 0
      pages/chaojidanci/newEnglish/components/pinPage.vue

+ 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;