推荐页面
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user