diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue index c6149dd..07868f4 100644 --- a/pages/tabbar/pagehome/pagehome.vue +++ b/pages/tabbar/pagehome/pagehome.vue @@ -26,6 +26,9 @@ + + + @@ -64,12 +67,14 @@ import swiperTab from '@/components/swiper-tab/swiper-tab.vue'; import footTab from '@/components/foot-tabs/foot-tab.vue'; import list from '@/components/list.vue'; + import pitera from '@/components/nothing/pitera.vue'; export default { components:{ 'foot-tab' :footTab, swiperTab, swiperPu, - list + list, + pitera }, data() { return { @@ -174,19 +179,7 @@ }, // 播放视频 palyVideo(index){ - let newList = []; - if(this.videoList.length){ - this.videoList.forEach(item=>{ - let obj = { - ...item, - isPlayImg:true, - autoplay:false, - isControls:false - } - newList.push(obj); - }) - } - uni.setStorageSync('videoList',newList); + uni.setStorageSync('videoList',this.videoList); uni.navigateTo({ url:`/pagesB/play-video/play-video?current=${index}` }) diff --git a/pages/tabbar/video/video.vue b/pages/tabbar/video/video.vue index a865513..3ce021a 100644 --- a/pages/tabbar/video/video.vue +++ b/pages/tabbar/video/video.vue @@ -16,7 +16,7 @@ - + {{item.title}} @@ -88,6 +88,13 @@ } }) }, + // 播放视频 + palyVideo(index){ + uni.setStorageSync('videoList',this.dataList); + uni.navigateTo({ + url:`/pagesB/play-video/play-video?current=${index}` + }) + }, } } diff --git a/pagesB/play-video/play-video.nvue b/pagesB/play-video/play-video.nvue index f7ee50a..3a0c78d 100644 --- a/pagesB/play-video/play-video.nvue +++ b/pagesB/play-video/play-video.nvue @@ -1,7 +1,7 @@