视频列表获取优化

This commit is contained in:
GaoHao
2024-12-26 19:32:01 +08:00
parent 0362307423
commit e01198b1dd
3 changed files with 31 additions and 10 deletions

View File

@@ -446,6 +446,7 @@
getRedEnvelopeTips: '',
scale: 1,
isOrder: true,
isGetDataList: false
};
},
onShareAppMessage(res) {
@@ -573,7 +574,7 @@
this.tt_episode_id = scene[5]
}
this.getDataList(this.courseId, this.courseDetailsId);
this.getMyLoveStatus()
// this.getMyLoveStatus()
}
this.isGuanggao = uni.getStorageSync('isGuanggao') //微信
this.isGuanggaody = uni.getStorageSync('isGuanggaody') //抖音
@@ -603,7 +604,7 @@
this.courseDetailsId = e.courseDetailsId
}
console.log(this.courseDetailsId, '跳转进来的id')
this.getMyLoveStatus()
// this.getMyLoveStatus()
}
if (e.tt_album_id) {
this.tt_album_id = e.tt_album_id
@@ -624,7 +625,7 @@
if (arr[1] && arr[1] != 'null') {
this.courseDetailsId = arr[1]
}
this.getMyLoveStatus()
// this.getMyLoveStatus()
this.getMoneyList()
this.getMyMoney()
}
@@ -1459,6 +1460,7 @@
this.num = item.num
}
})
this.playFlag = false
},
//选择集数后在更新剩下的数据
setVideoList(index) {
@@ -1546,6 +1548,11 @@
this.dyCourseId = "" + res.data.dyCourseId;
console.log("dyCourseId__" + this.dyCourseId)
}
if (res.data && res.data.isCollect && res.data.isCollect > 0) {
this.isCollect = true
} else {
this.isCollect = false
}
if (res.data.listsDetail) {
this.info = res.data
this.title = this.info.title
@@ -1942,7 +1949,10 @@
videoPlay(videoId) {
// this.courseDetailsId = courseDetailsId
if (!this.playFlag) {
this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId,true);
if ( this.isGetDataList) {
this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId,true);
}
this.isGetDataList = true;
this.playFlag = true
this.$Request.getT('app/course/viewCourse', {
courseId: this.courseId,