Parcourir la source

Merge branch 'master' into stage-4

chenxiong il y a 3 ans
Parent
commit
76e4d00f10
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  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)
+
 			}
 			
 		}