From e3872c2c4c0db9b14a615418bc11390a789af5ab Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Mon, 4 Sep 2023 19:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9h5=E8=A7=86=E9=A2=91=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/short_video/nvueSwiper/index.nvue | 33 +++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/pages/short_video/nvueSwiper/index.nvue b/pages/short_video/nvueSwiper/index.nvue index 3b2a460..681e11a 100644 --- a/pages/short_video/nvueSwiper/index.nvue +++ b/pages/short_video/nvueSwiper/index.nvue @@ -743,19 +743,26 @@ get() { let that = this // 1.这里引入后端请求数据 - - deoList(this.videoID).then(res => { - that.videoData([res.data]) - if (res.data.list.length < that.limit) { - this.loadMore = false; - } - }).catch(err => { - return uni.showToast({ - title: err, - icon: 'none', - duration: 2000 - }); - }) + if(this.videoID){ + deoList(this.videoID).then(res => { + that.videoData([res.data]) + if (res.data.list.length < that.limit) { + this.loadMore = false; + } + }).catch(err => { + return uni.showToast({ + title: err, + icon: 'none', + duration: 2000 + }); + }) + this.videoID='' + }else{ + videoList().then(res=>{ + that.videoData(res.data.list); + }) + } + // that.isUser ? // myVideoList(that.userUid, { // page: that.page,