课程简介页面

This commit is contained in:
2024-06-25 13:13:37 +08:00
parent 5043b64901
commit 2fccb6d77c
2 changed files with 184 additions and 55 deletions

View File

@@ -323,7 +323,7 @@ export default {
plus.screen.lockOrientation("default");
this.options = options;
this.getCourseDescriptionData();
// this.getUserInfo()
// this.getCateList()
},
@@ -333,10 +333,12 @@ export default {
},
onShow() {
this.screenLoading=false
this.currentCateIndex = 0;
this.currentCateIndex = this.options.videoIndex?this.options.videoIndex:0;
// #ifdef APP-PLUS
plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("portrait-primary");
this.getCourseDescriptionData();
// #endif
},
computed: {
@@ -496,7 +498,7 @@ export default {
that.curriculumData = res.data.detail;
that.videoArray = res.data.videos;
if (that.videoArray.length > 0) {
this.currentVideo = that.videoArray[0];
this.currentVideo = that.videoArray[that.currentCateIndex];
this.initVideo();
}
// if (res.obj.correlatedList && res.obj.correlatedList.length > 0) {