From 5ecb34dd1f087f80d240484fc99fc972e580abee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E2=80=9Cshijing?= <“1378914240@qq.com> Date: Wed, 25 Aug 2021 15:02:20 +0800 Subject: [PATCH] video --- client_mp/pages/my/videoWatchRecords.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/client_mp/pages/my/videoWatchRecords.vue b/client_mp/pages/my/videoWatchRecords.vue index a2685bc..7659db8 100644 --- a/client_mp/pages/my/videoWatchRecords.vue +++ b/client_mp/pages/my/videoWatchRecords.vue @@ -30,10 +30,12 @@ } }, onShow(){ - this.$u.api.getMyVideoRecord({}).then(res => { - this.dataList = res.data.results; - console.log(res.data.results) - }) + this.page = 1; + this.getLists(); + // this.$u.api.getMyVideoRecord({}).then(res => { + // this.dataList = res.data.results; + // console.log(res.data.results) + // }) }, methods: { plauVideo(item){ @@ -56,11 +58,11 @@ var params = { page: this.page } - this.$u.api.getVideos(params).then(res => { + this.$u.api.getMyVideoRecord(params).then(res => { this.refreStatus = false let results = res.data.results - if (currentData.page == 1) { + if (this.page == 1) { if (results == 0) { this.loadingText = '暂无观看记录' } else {