Pārlūkot izejas kodu

播放时刻-三秒

谢杰标 2 gadi atpakaļ
vecāks
revīzija
0ef865e013
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 7 4
      pages3/polyv/detail.vue

+ 7 - 4
pages3/polyv/detail.vue

@@ -982,7 +982,7 @@ export default {
     this.courseId = Number(option.id) || "";
     this.goodsId = Number(option.goodsId);
     this.orderGoodsId = Number(option.orderGoodsId) || "";
-    this.gradeId = option.gradeId;
+    this.gradeId = Number(option.gradeId);
     this.option = option;
     // 公众号模板消息的数据埋点
     option.informId && this.clickOfficial(option.informId);
@@ -2593,7 +2593,7 @@ export default {
       }
       // #endif
 
-      this.recordObj = { videoCurrentTime: item.noteSecond };
+      this.recordObj = { videoCurrentTime: item.noteSecond};
       if (this.recordObj.videoCurrentTime) {
         this.needSeek = true; //需要跳转到播放记录
       }
@@ -2645,6 +2645,9 @@ export default {
           orderGoodsId: this.orderGoodsId,
         };
         this.$api.recordLast(data).then((res) => {
+          if(res.data.data.videoCurrentTime>3){
+            res.data.data.videoCurrentTime-=3
+          }
           resolve(res.data.data);
         });
       });
@@ -3165,6 +3168,7 @@ export default {
         }
         if (this.needSeek) {
           // var polyvPlayerContext = this.selectComponent("#playerVideo");
+
           if (this.recordObj.videoCurrentTime) {
             polyvPlayerContext.seek(this.recordObj.videoCurrentTime);
             this.seekTime = this.$method.secondToDate(
@@ -3606,8 +3610,7 @@ export default {
         if (self.goodsData.buyNote) {
           this.baseHandoutTipList();
         }
-        console.log(this.goodsData, 798);
-        self.gradeId = self.goodsData.gradeId;
+        !self.gradeId && (self.gradeId = self.goodsData.gradeId);
         self.erJianErZao = self.goodsData.erJianErZao;
         self.jjShiGongYuan = self.goodsData.jjShiGongYuan;
         this.courseBusiness(this.goodsData.businessId);