谢杰标 há 2 anos atrás
pai
commit
5fd145a94e

+ 8 - 1
common/httpList/exam.js

@@ -8,5 +8,12 @@ export default {
 			url: '/bank/exam/'+data,
 			method: 'get',
 		})
-	}
+	},
+	getExamLearnStatus(data) {
+		return myRequest({
+		  url: '/bank/record/check/bank/record',
+		  params: data,
+		  method: 'GET',
+		})
+	  },
 }

+ 5 - 3
components/course/courseSection.vue

@@ -312,10 +312,12 @@ export default {
 			})
 		},
 		getVideo(){
-			if(this.clickLock) {
+			if(this.clickLock||!this.menuItem.tryListen) {
 				return;
 			}
-
+            if (this.$method.isGoLogin()) { 
+               return;
+            }
 			this.clickLock = true;
 			
 			if(this.learningOrder == 2 && !this.menuItem.isRebuild && !this.isLive) { //要按从头到尾顺序学习, 且不是重修课程
@@ -355,7 +357,6 @@ export default {
 				this.playVideo();
 			}
 			
-			
 			setTimeout(() => {
 				this.clickLock = false;
 			},3000)
@@ -373,6 +374,7 @@ export default {
 			});
 		},
 		async playVideo() {
+			console.log(this.menuItem,6666)
 			if(this.menuItem.sectionType==1 || this.menuItem.sectionType == 3){
 				//1视频 3回放
 				if(!this.isBuy){

Diff do ficheiro suprimidas por serem muito extensas
+ 239 - 179
pages2/class/questionBank.vue


+ 2 - 2
pages3/course/detail.vue

@@ -555,8 +555,6 @@ export default {
         if (self.timer) {
           clearInterval(self.timer);
         }
-        console.log(4654, self.vid);
-        self.vid = self.vid || item.recordingUrl;
         if (self.vid) {
           //切换视频
           // #ifdef H5
@@ -566,6 +564,8 @@ export default {
           var polyvPlayerContext = self.selectComponent("#player");
           polyvPlayerContext.changeVid(item.recordingUrl);
           // #endif
+        }else{
+          self.vid = item.recordingUrl
         }
 
         self.startStatus = true;

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff