1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| <template> <view class="container"> <view v-if="list.length" class="list"> <video-item v-for="item in list" :key="item.id" :item="item"></video-item> </view> </view> </template>
<script> export default { data() { return { list: [{ id: 1, content: '测试1', video_url: 'https://cdn.hongfs.cn/tmp/blog/video_20201129/1.mp4', }, { id: 2, content: '测试2', video_url: 'https://cdn.hongfs.cn/tmp/blog/video_20201129/2.mp4', }, { id: 3, content: '测试3', video_url: 'https://cdn.hongfs.cn/tmp/blog/video_20201129/3.mp4', }, { id: 4, content: '测试4', video_url: 'https://cdn.hongfs.cn/tmp/blog/video_20201129/4.mp4', }, { id: 5, content: '测试5', video_url: 'https://cdn.hongfs.cn/tmp/blog/video_20201129/5.mp4', }, { id: 6, content: '测试6', video_url: 'https://cdn.hongfs.cn/tmp/blog/video_20201129/6.mp4', }], } }, } </script>
|