From 126a5f659071d0f185c5175e98f9345e7a1df25a Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Thu, 9 Jan 2025 16:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/video/video.nvue | 2 +- pages/video/video.vue | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/video/video.nvue b/pages/video/video.nvue index eade91c..e7ecc88 100644 --- a/pages/video/video.nvue +++ b/pages/video/video.nvue @@ -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 => { diff --git a/pages/video/video.vue b/pages/video/video.vue index f016c80..0b84359 100644 --- a/pages/video/video.vue +++ b/pages/video/video.vue @@ -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() {