12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template>
- <view>
- <view class="videoList">
- <view class="title">{{videoList[0].title}}</view>
- <view class="list">
- <view class="item" v-for="item in videoList" :key="item.id">
- <view class="name">{{item.videoName}}</view>
- <view class="icon" @click="detail(item.videoUrl,item.videoName)">
- <uni-icons type="videocam" size="24" color="#009FE8"></uni-icons>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:[
- "videoList"
- ],
- data() {
- return {
-
- };
- },
- methods:{
- detail(path,name){
- console.log(path)
- uni.navigateTo({
- url:"../../index/record/record-video/record-video?name=" + name + "&url=" + path
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .videoList{
- .title{
- line-height: 30px;
- border-left: 4px solid #009FE8;
- border-radius: 4px;
- padding-left: 10px;
- margin-bottom: 10px;
- }.list{
- .item{
- padding: 20rpx 25rpx;
- border-bottom: 1rpx solid #f4f4f4;
-
- display: flex;
- justify-content: space-between;
- .name{
- white-space: nowrap;
- overflow: hidden;
- text-overflow:ellipsis;
- }
- .icon{
- padding-left: 50rpx;
- }
- }
- }
- }
- </style>
|