From 23e6e1c3ce5062e1d0956d867888c065976e9b64 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 25 Aug 2021 14:49:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=20vide?= =?UTF-8?q?oWatchRecords.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client_mp/pages/my/videoWatchRecords.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client_mp/pages/my/videoWatchRecords.vue b/client_mp/pages/my/videoWatchRecords.vue index a2685bc..3e1cd71 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,7 +58,7 @@ 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 From ac25896787cce416f2983b4f9236f0b02b4fb917 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 25 Aug 2021 14:55:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=20vide?= =?UTF-8?q?oWatchRecords.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client_mp/pages/my/videoWatchRecords.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_mp/pages/my/videoWatchRecords.vue b/client_mp/pages/my/videoWatchRecords.vue index 3e1cd71..4fac109 100644 --- a/client_mp/pages/my/videoWatchRecords.vue +++ b/client_mp/pages/my/videoWatchRecords.vue @@ -62,7 +62,7 @@ this.refreStatus = false let results = res.data.results - if (currentData.page == 1) { + if (this.page == 1) { if (results == 0) { this.loadingText = '暂无观看记录' } else {