vod.vue 762 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template name="vod">
  2. <view>
  3. <image :src="item.pic" mode='widthFix' class="slide-image" />
  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. config : {
  12. type : Object,
  13. value : null
  14. },
  15. item : {
  16. type : Object,
  17. value : null
  18. },
  19. },
  20. }
  21. </script>
  22. <style>
  23. .slide-image {
  24. width: 750rpx;
  25. height: 100%;
  26. display: block;
  27. }
  28. .ico-video-play{
  29. background: url(@/static/icon/ico-video-play.png) no-repeat;
  30. background-size: cover;
  31. width: 100rpx;
  32. height: 100rpx;
  33. position: absolute;
  34. left: 50%;
  35. top: 50%;
  36. transform: translate3d(-50%,-50%,0);
  37. }
  38. </style>