hjyd的手机端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
826 B

  1. <template>
  2. <div class="card_detail_img" v-if="pic1">
  3. <div class="double_wrap" v-if="double">
  4. <img v-lazy="pic1" alt="" />
  5. <img v-lazy="pic2" alt="" />
  6. </div>
  7. <img v-else v-lazy="pic1" class="sing_img" alt="" />
  8. </div>
  9. </template>
  10. <script setup>
  11. const props = defineProps({
  12. double: Boolean,
  13. pic1: {},
  14. pic2: {},
  15. })
  16. </script>
  17. <style lang="scss" scoped>
  18. .card_detail_img {
  19. padding: 0 21px;
  20. .double_wrap {
  21. display: grid;
  22. grid-template-rows: repeat(1, 1fr);
  23. grid-template-columns: repeat((2, 1fr));
  24. align-items: center;
  25. justify-content: space-between;
  26. column-gap: 19px;
  27. margin-bottom: 10px;
  28. img {
  29. width: 100%;
  30. height: auto;
  31. border-radius: 4px;
  32. }
  33. }
  34. .sing_img {
  35. width: 100%;
  36. height: auto;
  37. border-radius: 4px;
  38. }
  39. }
  40. </style>