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;