Explorar el Código

跳转到某点播放

谢杰标 hace 2 años
padre
commit
2dfaeee846
Se han modificado 1 ficheros con 9 adiciones y 13 borrados
  1. 9 13
      pages3/polyv/detail.vue

+ 9 - 13
pages3/polyv/detail.vue

@@ -1167,7 +1167,11 @@ export default {
       await this.studyRecordMenuAllList();
       // 消息过来 定位某个节
       if (this.option.noteSecond) {
-        this.initPlayVideo({ sectionType: 1, ...this.option });
+        this.initPlayVideo({
+          sectionType: 1,
+          ...this.option,
+          videoCurrentTime: Number(this.option.noteSecond),
+        });
         return;
       }
       this.studyRecordQueryLiveLast();
@@ -1818,6 +1822,7 @@ export default {
         let info = await this.$api.userConfirmInfoDetail({
           orderGoodsId: this.orderGoodsId,
         });
+        return Promise.resolve();
         if (!info.data.data || info.data.data.pushInfo !== 1) {
           uni.showModal({
             showCancel: false,
@@ -2199,18 +2204,9 @@ export default {
       if (this.timer) {
         clearInterval(this.timer);
       }
-      this.recordObj = await this.getRecordLast(item);
-
-      // 同vid切换处理
-      // if (
-      //   this.playVID == item.recordingUrl &&
-      //   this.playSectionId != item.sectionId
-      // ) {
-      //   this.refPlv.changeVid({
-      //     vid: item.recordingUrl,
-      //     videoCurrentTime: this.recordObj.videoCurrentTime,
-      //   });
-      // }
+      this.recordObj = item.videoCurrentTime
+        ? { videoCurrentTime: item.videoCurrentTime }
+        : await this.getRecordLast(item);
       this.$store.commit("setPlayVID", {
         playVID: item.recordingUrl,
       });