2.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="onlyImgSectorListBox">
  3. <div class="onlyImgSectorItemBox1">
  4. <img src="@/assets/template/component/pic1.png" />
  5. <img src="@/assets/template/component/pic2.png" />
  6. </div>
  7. <div class="onlyImgSectorItemBox3">
  8. <img src="@/assets/template/component/pic3.png" />
  9. </div>
  10. <div class="onlyImgSectorItemBox2">
  11. <img src="@/assets/template/component/pic4.png" />
  12. </div>
  13. <div class="onlyImgSectorItemBox1">
  14. <img src="@/assets/template/component/pic1.png" />
  15. <img src="@/assets/template/component/pic2.png" />
  16. </div>
  17. <div class="onlyImgSectorItemBox3">
  18. <img src="@/assets/template/component/pic3.png" />
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. id:{
  26. type:Number,
  27. default:0
  28. },
  29. sort:{
  30. type:Number,
  31. default:0
  32. }
  33. },
  34. data() {
  35. return {
  36. };
  37. },
  38. methods: {
  39. },
  40. mounted() {
  41. },
  42. };
  43. </script>
  44. <style scoped lang="less">
  45. .onlyImgSectorListBox {
  46. width: 100%;
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. //border: 2px dashed #999;
  51. position: relative;
  52. height: 300px;
  53. img {
  54. width: 100%;
  55. display: block;
  56. }
  57. .onlyImgSectorItemBox1, .onlyImgSectorItemBox2, .onlyImgSectorItemBox3 {
  58. height: 300px;
  59. box-sizing: border-box;
  60. }
  61. .onlyImgSectorItemBox2 {
  62. width: 50%;
  63. padding: 0 10px;
  64. img {
  65. height: 100%;
  66. }
  67. }
  68. .onlyImgSectorItemBox3 {
  69. width: 12.4%;
  70. img {
  71. height: 100%;
  72. }
  73. }
  74. .onlyImgSectorItemBox1{
  75. width: 12.4%;
  76. padding-right: 10px;
  77. img {
  78. height: 50%;
  79. &:first-child {
  80. padding-bottom: 5px;
  81. }
  82. &:last-child {
  83. padding-top: 5px;
  84. }
  85. }
  86. }
  87. }
  88. </style>