Merge branch 'gaohao' of https://e.coding.net/g-cphe0354/duanju/video_app into test
This commit is contained in:
@@ -563,8 +563,10 @@
|
|||||||
//播放时的回掉
|
//播放时的回掉
|
||||||
videoPlay(videoId, courseDetailsId) {
|
videoPlay(videoId, courseDetailsId) {
|
||||||
console.log(courseDetailsId)
|
console.log(courseDetailsId)
|
||||||
|
console.log(this.playFlag)
|
||||||
// this.courseDetailsId = courseDetailsId
|
// this.courseDetailsId = courseDetailsId
|
||||||
if (!this.playFlag) {
|
if (!this.playFlag) {
|
||||||
|
this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId,true);
|
||||||
this.playFlag = true
|
this.playFlag = true
|
||||||
httpsRequest.getT('app/course/viewCourse', {
|
httpsRequest.getT('app/course/viewCourse', {
|
||||||
courseId: this.courseId,
|
courseId: this.courseId,
|
||||||
@@ -594,6 +596,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
appear(e, index) {
|
appear(e, index) {
|
||||||
|
this.playFlag = false
|
||||||
this.courseDetailsId = e;
|
this.courseDetailsId = e;
|
||||||
// 清除已经设置的定时器
|
// 清除已经设置的定时器
|
||||||
clearTimeout(this.appearTimeout);
|
clearTimeout(this.appearTimeout);
|
||||||
@@ -1273,6 +1276,7 @@
|
|||||||
};
|
};
|
||||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
console.log(res)
|
||||||
if (res.data.listsDetail) {
|
if (res.data.listsDetail) {
|
||||||
this.info = res.data;
|
this.info = res.data;
|
||||||
this.title = this.info.title;
|
this.title = this.info.title;
|
||||||
|
|||||||
@@ -147,7 +147,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onadload(e) {
|
onadload(e) {
|
||||||
console.log('广告数据加载成功');
|
console.log('广告数据加载成功');
|
||||||
|
|||||||
Reference in New Issue
Block a user