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 @@