课程简介页面
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user