播放器
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
@changeScreenLoading="changeScreenLoading"
|
||||
@hideNextVideo="hideNextVideo"
|
||||
@startNextVideoCountDown = "startNextVideoCountDown"
|
||||
@unlockChangeVideo="unlockChangeVideo"
|
||||
v-if="isfresh"
|
||||
ref="commonVideo"
|
||||
:secondCountDown="secondCountDown"
|
||||
@@ -55,6 +56,7 @@
|
||||
:currentVideo="currentVideo"
|
||||
:dataList="videoArray"
|
||||
@open="changeVideo"
|
||||
:changeVideoLock="changeVideoLock"
|
||||
>
|
||||
</common-curriculum-video>
|
||||
</view>
|
||||
@@ -117,6 +119,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
changeVideoLock:false, // 切换键锁
|
||||
isFullScreen: false,
|
||||
screenLoading: false,
|
||||
isfresh: false,
|
||||
@@ -228,6 +231,9 @@ export default {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
methods: {
|
||||
unlockChangeVideo(){
|
||||
this.changeVideoLock = false
|
||||
},
|
||||
startNextVideoCountDown(){
|
||||
this.secondCountDown = 10
|
||||
let that = this
|
||||
@@ -288,6 +294,7 @@ export default {
|
||||
this.$forceUpdate();
|
||||
},
|
||||
initVideo() {
|
||||
this.changeVideoLock = true
|
||||
this.screenLoading = false;
|
||||
this.isfresh = false;
|
||||
this.$nextTick(() => {
|
||||
@@ -301,6 +308,7 @@ export default {
|
||||
});
|
||||
},
|
||||
changeVideo(data) {
|
||||
this.changeVideoLock = true
|
||||
if(this.countDownTimer){
|
||||
this.hideNextVideo()
|
||||
}
|
||||
@@ -315,10 +323,9 @@ export default {
|
||||
// this.$refs.commonVideo.handleEnd();
|
||||
setTimeout(() => {
|
||||
|
||||
this.$refs.commonVideo.changeVideo(data);
|
||||
this.currentVideo = data;
|
||||
// this.changeVideo()
|
||||
// this.initVideo();
|
||||
// this.$refs.commonVideo.changeVideo(data);
|
||||
this.currentVideo = data;
|
||||
this.initVideo();
|
||||
this.isOpenMp3 = false;
|
||||
}, 500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user