推荐页面

This commit is contained in:
duan
2025-01-09 16:20:16 +08:00
parent 5172af725a
commit 126a5f6590
2 changed files with 16 additions and 16 deletions

View File

@@ -392,7 +392,7 @@
let data = {
page: this.page,
limit: this.limit,
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '1',
randomNum: this.randomNum
};
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {

View File

@@ -528,13 +528,13 @@
if (e.detail.currentTime > e.detail.duration * 0.9) {
if (this.playFlag) {
this.playFlag = false
this.$Request.getT('/app/course/viewCourse', {
courseId: this.courseId,
courseDetailsId: this.courseDetailsId,
type: 'end'
}).then(res => {
console.log('播放结束')
})
// this.$Request.getT('/app/course/viewCourse', {
// courseId: this.courseId,
// courseDetailsId: this.courseDetailsId,
// type: 'end'
// }).then(res => {
// console.log('播放结束')
// })
}
}
},
@@ -775,7 +775,7 @@
classify: 3,
type: 1
}
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
// this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
},
//swiper上下切换事件
change(e) {
@@ -916,14 +916,14 @@
},
//在播放时候的回调
videoPlay(videoId) {
this.$Request.getT('/app/course/viewCourse', {
courseId: this.courseId,
courseDetailsId: this.courseDetailsId,
type: 'start'
}).then(res => {
// this.$Request.getT('/app/course/viewCourse', {
// courseId: this.courseId,
// courseDetailsId: this.courseDetailsId,
// type: 'start'
// }).then(res => {
this.playFlag = true
console.log('播放开始')
})
// console.log('播放开始')
// })
},
//监听视频播放完成
ended() {