소스 검색

Merge branch 'master' into stage-4

chenxiong 3 년 전
부모
커밋
13066e2421
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      pages3/polyv/detail.vue

+ 4 - 2
pages3/polyv/detail.vue

@@ -421,6 +421,7 @@ export default {
 		uni.$on('changeSection', oldSectionId => {
 			console.log(this.playVID)
 			this.photoConfig = false
+			this.photoIndex = 0
 			var polyvPlayerContext = this.selectComponent('#playerVideo');
 			if(polyvPlayerContext){
 				//解决同个节视频切换问题
@@ -433,6 +434,7 @@ export default {
 		uni.$on('getSection', item => {
 			//清除直播
 			this.photoConfig = false
+			this.photoIndex = 0
 			this.$store.commit('setPlayChannelId', { playChannelId: 0 });
 			//获取拍照历史
 			this.getPhotoLastRecord()
@@ -589,8 +591,8 @@ export default {
 						if(s>totalVideoTime){
 							s = totalVideoTime-1
 						}
-						if(s<2){
-							s =1
+						if(s<=5){
+							s =5 //避免出现5秒内拍照时间
 						}
 						this.photoList.push(s)
 						initSpace+=spaceTime