diff --git a/src/pages/home/Index2.vue b/src/pages/home/Index2.vue index ca62b54..0f06f47 100644 --- a/src/pages/home/Index2.vue +++ b/src/pages/home/Index2.vue @@ -6,6 +6,7 @@ :list="videos" :renderSlide="render" v-model:active-index="videoActiveIndex" + @end="end" > @@ -168,7 +169,7 @@ export default { }, watch: { videoActiveIndex(newVal) { - console.log(newVal) + // console.log(newVal) $(".base-slide-item").each(function () { let video = $(this).find('video') if ($(this).data('index') === newVal) { @@ -180,7 +181,8 @@ export default { }, 100) } }) - if (newVal === this.videos.length - 3) { + // if (newVal >= this.videos.length - 3) { + if (false) { [{ videoUrl: mp40, // videoUrl: 'http://babylife.qiniudn.com/FtRVyPQHHocjVYjeJSrcwDkApTLQ', @@ -246,6 +248,64 @@ export default { t(e) { console.log(e) }, + end(){ + console.log('end') + setTimeout(()=>{ + [{ + videoUrl: mp40, + // videoUrl: 'http://babylife.qiniudn.com/FtRVyPQHHocjVYjeJSrcwDkApTLQ', + videoPoster: src1Bg, + isLoved: true, + loves: 1234, + comments: 666, + shared: 999, + duration: 99 + }, + { + videoUrl: mp41, + // videoUrl: 'http://babylife.qiniudn.com/FtRVyPQHHocjVYjeJSrcwDkApTLQ', + videoPoster: src1Bg, + isLoved: true, + loves: 1234, + comments: 666, + shared: 999, + duration: 99 + }, + { + videoUrl: mp42, + // videoUrl: 'http://babylife.qiniudn.com/FtRVyPQHHocjVYjeJSrcwDkApTLQ', + videoPoster: src1Bg, + isLoved: false, + loves: 1234, + comments: 666, + shared: 999, + duration: 99 + }, + { + videoUrl: mp43, + // videoUrl: 'http://babylife.qiniudn.com/FtRVyPQHHocjVYjeJSrcwDkApTLQ', + videoPoster: src1Bg, + isLoved: false, + loves: 1234, + comments: 666, + shared: 999, + duration: 99 + }, + { + videoUrl: mp44, + // videoUrl: 'http://babylife.qiniudn.com/FtRVyPQHHocjVYjeJSrcwDkApTLQ', + videoPoster: src1Bg, + isLoved: false, + loves: 1234, + comments: 666, + shared: 999, + duration: 99 + }, + ].map(v => { + this.videos.push(v) + }) + },5000) + } } } diff --git a/src/pages/home/SlideListVirtual.vue b/src/pages/home/SlideListVirtual.vue index 65d5b7a..f83b093 100644 --- a/src/pages/home/SlideListVirtual.vue +++ b/src/pages/home/SlideListVirtual.vue @@ -1,5 +1,15 @@ +