es-swiper-item.vue 613 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="swiper-item-video">
  3. <!-- <video src="https://es.admin.506720281.com/mp4/1.mp4"
  4. :controls="false"
  5. :show-center-play-btn="false"
  6. ></video>
  7. <block v-if="show">
  8. <block v-if="type == 1">
  9. <es-video-pop></es-video-pop>
  10. </block>
  11. <block v-else>
  12. <es-living-pop></es-living-pop>
  13. </block>
  14. </block>
  15. -->
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. name:"es-swiper-item",
  21. data() {
  22. return {
  23. };
  24. },
  25. props:[
  26. 'type','show'
  27. ]
  28. }
  29. </script>
  30. <style>
  31. .swiper-item-video,.swiper-item-video video{
  32. width: 100%;
  33. height: 100%;
  34. }
  35. </style>