vod.vue 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template name="vod">
  2. <view>
  3. <image :src="item.pic" mode='widthFix' class="slide-image" style="height:auto"/>
  4. <view class="ico-video-play" @click="location" data-page="dream/videoPlay" :data-save_video="item.video" :data-save_pic="item.pic"></view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "vod",
  10. props: {
  11. control : {
  12. type : Object,
  13. value : null
  14. },
  15. item : {
  16. type : Object,
  17. value : null
  18. },
  19. index : 0
  20. },
  21. }
  22. </script>
  23. <style>
  24. .slide-image {
  25. width: 750rpx;
  26. height: 100%;
  27. display: block;
  28. }
  29. .ico-video-play{
  30. background: url(@/static/icon/ico-video-play.png) no-repeat;
  31. background-size: cover;
  32. width: 100rpx;
  33. height: 100rpx;
  34. position: absolute;
  35. left: 50%;
  36. top: 50%;
  37. transform: translate3d(-50%,-50%,0);
  38. }
  39. </style>