From d63cdea1ec3b919910ef3b6f60edfae63f6ff90c Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Mon, 9 Dec 2024 10:08:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=8A=BD=E5=A5=96=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- me/detail/detail.nvue | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/me/detail/detail.nvue b/me/detail/detail.nvue index 81df396..2b8ddff 100644 --- a/me/detail/detail.nvue +++ b/me/detail/detail.nvue @@ -1106,13 +1106,6 @@ this.videoContextId = 'myVideo' + numIdCurr; this.videoContext = uni.createVideoContext(this.videoContextId, this); console.log('走更新了') - if(this.noBuyVideoIndex!==null ){ - this.noBuyVideoIndex=null; - this.videoContext.stop() - return uni.navigateTo({ - url:'/me/choujiang/choujiang' - }) - } this.$nextTick(() => { //播放当前的 @@ -1201,16 +1194,14 @@ } } else { //直接跳转进来的 this.videoList = this.meunList - //滚动到记录视频的位置(如果有记录) - if (indexs > 0) { - console.log(indexs, '有记录吗?') - this.$nextTick(()=>{ - this.appear(this.videoList[indexs].courseDetailsId,indexs) - }) - // this.goListPosition(this.videoList[indexs].courseDetailsId) - } + this.$nextTick(() => { let indexss = indexs > 0 ? indexs : 0 + //滚动到记录视频的位置(如果有记录) + if (indexs > 0) { + console.log(indexs, '有记录吗?') + this.goListPosition(this.videoList[indexs].courseDetailsId) + } if (this.videoList[indexss].videoUrl) { //有播放权限 if(this.noBuyVideoIndex!==null){ this.noBuyVideoIndex=null