获取免费分钟播放视频修改

This commit is contained in:
GaoHao
2024-12-24 16:00:33 +08:00
parent d312b614d7
commit ab4eeb1b8b
2 changed files with 5 additions and 1 deletions

View File

@@ -563,8 +563,10 @@
//播放时的回掉
videoPlay(videoId, courseDetailsId) {
console.log(courseDetailsId)
console.log(this.playFlag)
// this.courseDetailsId = courseDetailsId
if (!this.playFlag) {
this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId,true);
this.playFlag = true
httpsRequest.getT('app/course/viewCourse', {
courseId: this.courseId,
@@ -594,6 +596,7 @@
},
appear(e, index) {
this.playFlag = false
this.courseDetailsId = e;
// 清除已经设置的定时器
clearTimeout(this.appearTimeout);
@@ -1273,6 +1276,7 @@
};
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
if (res.code == 0) {
console.log(res)
if (res.data.listsDetail) {
this.info = res.data;
this.title = this.info.title;

View File

@@ -156,7 +156,7 @@
userId: uni.getStorageSync('userId'),
extra: uni.getStorageSync('userId')+""+new Date().getTime(),
}
console.log(this.urlCallback)
this.isLoading = true;
// 首次加载广告
setTimeout(() => {