From 80bef54e47ae77db5bbbf74ce5f72cc71538e69f Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Mon, 12 Aug 2024 16:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commonComponents/curriculumVideo.vue | 7 +++-- .../commonComponents/video/index.vue | 6 ++--- pages/course/chapterDetailAndorid.vue | 26 ++++++++++--------- pages/course/courseDetail.vue | 1 + 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/pages/component/commonComponents/curriculumVideo.vue b/pages/component/commonComponents/curriculumVideo.vue index 447bc94..8620877 100644 --- a/pages/component/commonComponents/curriculumVideo.vue +++ b/pages/component/commonComponents/curriculumVideo.vue @@ -6,8 +6,8 @@ scroll-x="true" class="detail_title video_box" style="background-color: #fff" - > - + > + @@ -25,8 +25,7 @@ > - - + { - this.currentVideo = data; - this.$refs.commonVideo.changeVideo(); + + this.$refs.commonVideo.changeVideo(data); + this.currentVideo = data; // this.changeVideo() // this.initVideo(); this.isOpenMp3 = false; }, 500); - } else { - this.currentVideo = data; - this.initVideo(); - this.isOpenMp3 = false; - } + } + // else { + // this.currentVideo = data; + // this.initVideo(); + // this.isOpenMp3 = false; + // } // console.log("data at line 380111111111111111111:", data.type); }, @@ -376,6 +377,7 @@ export default { isHaveHistorySeekVideo != -1 ? isHaveHistorySeekVideo : 0; if (that.videoArray.length > 0) { this.currentVideo = that.videoArray[that.currentCateIndex]; + console.log('默认播放的index',that.currentCateIndex, this.currentVideo.id,that.videoArray); this.initVideo(); } var videoArray = []; diff --git a/pages/course/courseDetail.vue b/pages/course/courseDetail.vue index 9901097..5a32938 100644 --- a/pages/course/courseDetail.vue +++ b/pages/course/courseDetail.vue @@ -1902,6 +1902,7 @@ } .price { + // text-align: center; font-size: 26rpx; font-weight: bold;