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