wangxy 1 month ago
parent
commit
0eaa3e2a7e

+ 3 - 0
pages/xinshuxue/components/videoPlay.vue

@@ -40,6 +40,9 @@
 		methods: {
 			handleStop() {
 				MyRenderEventBus.$emit('video-play1')
+			},
+			playEnd() {
+				this.$emit('playEnd')
 			}
 		}
 	}

+ 3 - 0
pages/xinshuxue/components/videoPlay2.vue

@@ -37,6 +37,9 @@
 		methods: {
 			handleStop() {
 				MyRenderEventBus.$emit(`video-play2`)
+			},
+			playEnd() {
+				this.$emit('playEnd')
 			}
 		}
 	}

+ 3 - 3
pages/xinshuxue/lookShipin.vue

@@ -14,9 +14,9 @@
 			</view>
 		</view> -->
 			<videoPlayVue ref="c1" v-show="showA" :key="1"  :videoId1="videoId" :progressMarkers1="progressMarkers" :playAuth1="playAuth" 
-			:hideFlag1="hideFlag"   :seek-time1="seekTime" class="ksp-video-box"></videoPlayVue>
+			:hideFlag1="hideFlag"   :seek-time1="seekTime" class="ksp-video-box" @playEnd="playEnd"></videoPlayVue>
 			<videoPlayVue2 ref="c2" v-show="showB" :key="2"  :videoId1="videoId2" :progressMarkers1="progressMarkers2" :playAuth1="playAuth2"
-			:hideFlag1="hideFlag2" :seek-time1="seekTime2" class="ksp-video-box"
+			:hideFlag1="hideFlag2" :seek-time1="seekTime2" class="ksp-video-box" @playEnd="playEnd"
 			></videoPlayVue2>
 			<!-- 核心基础题 -->
 			<view class="ksp-item-list">
@@ -123,7 +123,7 @@
 		methods: {
 			//  当前节学习完成
 			saveJieWancheng() {
-				getShuxueChanpinWancheng({jieId: this.jieInfo.jieId}).then(res => {
+				httpApi.getShuxueChanpinWancheng({jieId: this.jieInfo.jieId}).then(res => {
 					if (res.data) {
 						// 学习完成提示弹窗
 						this.$refs.popupRef.open();