|
@@ -133,15 +133,15 @@
|
|
|
if (this.showA) return;
|
|
if (this.showA) return;
|
|
|
this.showB = false;
|
|
this.showB = false;
|
|
|
this.showA = true;
|
|
this.showA = true;
|
|
|
- this.$refs.c1.handleStop()
|
|
|
|
|
- this.$refs.c2.handleStop()
|
|
|
|
|
|
|
+ this.$refs.c1 && this.$refs.c1.handleStop()
|
|
|
|
|
+ this.$refs.c2 && this.$refs.c2.handleStop()
|
|
|
},
|
|
},
|
|
|
handleSelectNengliTishengti() {
|
|
handleSelectNengliTishengti() {
|
|
|
if (this.showB) return;
|
|
if (this.showB) return;
|
|
|
this.showB = true;
|
|
this.showB = true;
|
|
|
this.showA = false;
|
|
this.showA = false;
|
|
|
- this.$refs.c1.handleStop()
|
|
|
|
|
- this.$refs.c2.handleStop()
|
|
|
|
|
|
|
+ this.$refs.c1 && this.$refs.c1.handleStop()
|
|
|
|
|
+ this.$refs.c2 && this.$refs.c2.handleStop()
|
|
|
},
|
|
},
|
|
|
// 当前节学习完成
|
|
// 当前节学习完成
|
|
|
saveJieWancheng() {
|
|
saveJieWancheng() {
|
|
@@ -230,7 +230,7 @@
|
|
|
markersClick(data) {
|
|
markersClick(data) {
|
|
|
this.showA = true;
|
|
this.showA = true;
|
|
|
this.showB = false;
|
|
this.showB = false;
|
|
|
- this.$refs.c2.handleStop();
|
|
|
|
|
|
|
+ this.$refs.c2 && this.$refs.c2.handleStop();
|
|
|
this.seekTime = ""
|
|
this.seekTime = ""
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.seekTime = data.offset
|
|
this.seekTime = data.offset
|
|
@@ -239,7 +239,7 @@
|
|
|
markersClick2(data) {
|
|
markersClick2(data) {
|
|
|
this.showA = false;
|
|
this.showA = false;
|
|
|
this.showB = true;
|
|
this.showB = true;
|
|
|
- this.$refs.c1.handleStop()
|
|
|
|
|
|
|
+ this.$refs.c1 && this.$refs.c1.handleStop()
|
|
|
this.seekTime2 = ""
|
|
this.seekTime2 = ""
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.seekTime2 = data.offset
|
|
this.seekTime2 = data.offset
|