Browse Source

fix 拍照历史

he2802 3 năm trước cách đây
mục cha
commit
fab6a12b23
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      components/course/courseSection.vue

+ 6 - 4
components/course/courseSection.vue

@@ -114,10 +114,11 @@ export default {
 							//设置播放的节ID
 							this.$store.commit('setPlaySectionId', {playSectionId  :nextId});
 							this.$store.commit('setPlayVID', {playVID  :this.nextMenuItem.recordingUrl});
-							uni.$emit('getSection', this.nextMenuItem)
 							let ids = this.levelId.split('-');
 							ids[2] = nextId 
 							uni.$emit('levelId', ids.join('-'))
+							uni.$emit('getSection', this.nextMenuItem)
+							
 				        }
 				    }
 				});
@@ -154,8 +155,9 @@ export default {
 				//设置播放的节ID
 				this.$store.commit('setPlaySectionId', {playSectionId  :this.newId});
 				this.$store.commit('setPlayVID', {playVID  :this.menuItem.recordingUrl});
-				uni.$emit('getSection', this.menuItem)
 				uni.$emit('levelId', this.levelId)
+				uni.$emit('getSection', this.menuItem)
+				
 			}
 			if(this.menuItem.sectionType==2){
 				//直播
@@ -176,9 +178,9 @@ export default {
 				//设置播放的节ID
 				this.$store.commit('setPlaySectionId', {playSectionId  :this.newId});
 				this.$store.commit('setPlayChannelId', {playChannelId  :this.menuItem.liveUrl});
-				uni.$emit('getChannel', this.menuItem)
 				uni.$emit('levelId', this.levelId)
-				
+				uni.$emit('getChannel', this.menuItem)
+
 			}
 			
 		}