From a8ffd5663b62fd93cab2f85555f801b21f7da342 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Mon, 8 Nov 2021 15:49:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E8=BD=AE?= =?UTF-8?q?=E6=92=AD=E9=A2=A4=E6=8A=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/pagehome/pagehome.vue | 39 +++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue index 7a795d0..0e46823 100644 --- a/pages/tabbar/pagehome/pagehome.vue +++ b/pages/tabbar/pagehome/pagehome.vue @@ -25,7 +25,21 @@ - + + @@ -132,7 +146,9 @@ bannerList:[],//轮播图 jieDuan:false, isNewRenderDone:false ,//锁的作用 - isQuan:true + isQuan:true, + bcurrent:0, + isAutoPlay:false } }, onPageScroll(e) { @@ -147,6 +163,9 @@ this.isZanw = false } }, + onHide() { + this.isAutoPlay = false; + }, onShow() { log('输出的解构') this.checkNet() @@ -162,6 +181,7 @@ uni.setStorageSync('chu',1) } this.checkKT()//恒美课堂列表 + this.isAutoPlay = true; }, onShareAppMessage(res) {}, onLoad(options) { @@ -217,6 +237,15 @@ this.$toolAll.tools.buriedPointAll()//查询需要埋点的事件id }, methods: { + changeBanner(e){ + this.bcurrent = e.detail.current//当前的指示点下标 + }, + playVideo(index){ + // console.log('播放视频'); + uni.navigateTo({ + url:`/pagesB/video/playVideo?src=${this.bannerList[index].url}&posterSrc=${this.bannerList[index].poster}` + }) + }, closeEv(){ this.isQuan = false; }, @@ -506,5 +535,9 @@