Browse Source

修改显示

wangxy 1 month ago
parent
commit
27953a202f
1 changed files with 6 additions and 6 deletions
  1. 6 6
      pages/xinshuxue/lookShipin.vue

+ 6 - 6
pages/xinshuxue/lookShipin.vue

@@ -133,15 +133,15 @@
 				if (this.showA) return;
 				this.showB = false;
 				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() {
 				if (this.showB) return;
 				this.showB = true;
 				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() {
@@ -230,7 +230,7 @@
 			markersClick(data) {
 				this.showA = true;
 				this.showB = false;
-				this.$refs.c2.handleStop();
+        this.$refs.c2 && this.$refs.c2.handleStop();
 				this.seekTime = ""
 				this.$nextTick(() => {
 					this.seekTime = data.offset
@@ -239,7 +239,7 @@
 			markersClick2(data) {
 				this.showA = false;
 				this.showB = true;
-				this.$refs.c1.handleStop()
+        this.$refs.c1 && this.$refs.c1.handleStop()
 				this.seekTime2 = ""
 				this.$nextTick(() => {
 					this.seekTime2 = data.offset