赞
踩
①在 components 下新建 video-list.vue 文件来编写视频列表
<template> <view class="videoList"> <view class="video-box"> <swiper class="swiper" :vertical="true"> <swiper-item> <view class="swiper-item"> <videoPlayer></videoPlayer> </view> </swiper-item> <swiper-item> <view class="swiper-item"> <videoPlayer></videoPlayer> </view> </swiper-item> <swiper-item> <view class="swiper-item"> <videoPlayer></videoPlayer> </view> </swiper-item> </swiper> </view> </view> </template> <script> import videoPlayer from './videoPlayer.vue' export default { components: { videoPlayer }, name: "video-list", data() { return { }; } } </script> <style> .videoList { width: 100%; height: 100%; } .video-box { width: 100%; height: 100%; } .swiper { width: 100
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。