推荐页面
This commit is contained in:
@@ -392,7 +392,7 @@
|
|||||||
let data = {
|
let data = {
|
||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
|
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '1',
|
||||||
randomNum: this.randomNum
|
randomNum: this.randomNum
|
||||||
};
|
};
|
||||||
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
||||||
|
|||||||
@@ -528,13 +528,13 @@
|
|||||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||||
if (this.playFlag) {
|
if (this.playFlag) {
|
||||||
this.playFlag = false
|
this.playFlag = false
|
||||||
this.$Request.getT('/app/course/viewCourse', {
|
// this.$Request.getT('/app/course/viewCourse', {
|
||||||
courseId: this.courseId,
|
// courseId: this.courseId,
|
||||||
courseDetailsId: this.courseDetailsId,
|
// courseDetailsId: this.courseDetailsId,
|
||||||
type: 'end'
|
// type: 'end'
|
||||||
}).then(res => {
|
// }).then(res => {
|
||||||
console.log('播放结束')
|
// console.log('播放结束')
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -775,7 +775,7 @@
|
|||||||
classify: 3,
|
classify: 3,
|
||||||
type: 1
|
type: 1
|
||||||
}
|
}
|
||||||
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
// this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
||||||
},
|
},
|
||||||
//swiper上下切换事件
|
//swiper上下切换事件
|
||||||
change(e) {
|
change(e) {
|
||||||
@@ -916,14 +916,14 @@
|
|||||||
},
|
},
|
||||||
//在播放时候的回调
|
//在播放时候的回调
|
||||||
videoPlay(videoId) {
|
videoPlay(videoId) {
|
||||||
this.$Request.getT('/app/course/viewCourse', {
|
// this.$Request.getT('/app/course/viewCourse', {
|
||||||
courseId: this.courseId,
|
// courseId: this.courseId,
|
||||||
courseDetailsId: this.courseDetailsId,
|
// courseDetailsId: this.courseDetailsId,
|
||||||
type: 'start'
|
// type: 'start'
|
||||||
}).then(res => {
|
// }).then(res => {
|
||||||
this.playFlag = true
|
this.playFlag = true
|
||||||
console.log('播放开始')
|
// console.log('播放开始')
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
//监听视频播放完成
|
//监听视频播放完成
|
||||||
ended() {
|
ended() {
|
||||||
|
|||||||
Reference in New Issue
Block a user