vod.vue 713 B

123456789101112131415161718192021222324252627282930313233343536
  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. item : {
  12. type : Object,
  13. value : null
  14. },
  15. },
  16. }
  17. </script>
  18. <style>
  19. .slide-image {
  20. width: 750rpx;
  21. height: 100%;
  22. display: block;
  23. }
  24. .ico-video-play{
  25. background: url(../../../static/icon/ico-video-play.png) no-repeat;
  26. background-size: cover;
  27. width: 100rpx;
  28. height: 100rpx;
  29. position: absolute;
  30. left: 50%;
  31. top: 50%;
  32. transform: translate3d(-50%,-50%,0);
  33. }
  34. </style>