moduleTopFire.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <div v-if="visible" class="module-content">
  3. <div class="left-solt">
  4. <div class="left-img"></div>
  5. <div class="left-title">智能注浆系统</div>
  6. </div>
  7. <div class="center-solt">
  8. <div class="left-content">
  9. <div class="img-left"></div>
  10. <div class="title-left">监测区域</div>
  11. </div>
  12. <div class="center-content">
  13. <div class="center-top">自燃倾向性等级:容易自燃</div>
  14. <div class="center-bottom">低风险</div>
  15. </div>
  16. <div class="right-content">
  17. <div class="title-right">火灾风险</div>
  18. <div class="img-right"></div>
  19. </div>
  20. </div>
  21. <div class="right-solt">
  22. <div class="right-img"></div>
  23. <div class="right-title">智能注氮系统</div>
  24. </div>
  25. </div>
  26. </template>
  27. <script lang="ts" setup>
  28. defineProps<{ title: string; visible: boolean }>();
  29. const emit = defineEmits(['close', 'click']);
  30. </script>
  31. <style lang="less" scoped>
  32. @import '/@/design/theme.less';
  33. .module-content {
  34. background: url('@/assets/images/fireNew/3-1.png') no-repeat;
  35. background-size: 100% 100%;
  36. color: #fff;
  37. box-sizing: border-box;
  38. position: absolute;
  39. width: 100%;
  40. height: 100%;
  41. display: flex;
  42. align-items: center;
  43. }
  44. .left-solt {
  45. width: 100%;
  46. width: 100%;
  47. display: flex;
  48. flex-direction: column;
  49. .left-img {
  50. left: 4%;
  51. top: 2%;
  52. width: 75px;
  53. height: 75px;
  54. cursor: pointer;
  55. position: absolute;
  56. background: url('@/assets/images/fireNew/3-4.png') no-repeat;
  57. background-size: 100% 100%;
  58. }
  59. .left-title {
  60. left: 3%;
  61. top: 85px;
  62. font-size: 13px;
  63. font-family: 'douyuFont';
  64. font-weight: bold;
  65. color: #fff;
  66. position: absolute;
  67. }
  68. }
  69. .right-solt {
  70. width: 100%;
  71. width: 100%;
  72. display: flex;
  73. flex-direction: column;
  74. .right-img {
  75. right: 4%;
  76. top: 2%;
  77. width: 75px;
  78. height: 75px;
  79. cursor: pointer;
  80. position: absolute;
  81. background: url('@/assets/images/fireNew/3-5.png') no-repeat;
  82. background-size: 100% 100%;
  83. }
  84. .right-title {
  85. right: 3%;
  86. top: 85px;
  87. font-size: 13px;
  88. font-family: 'douyuFont';
  89. font-weight: bold;
  90. color: #fff;
  91. position: absolute;
  92. }
  93. }
  94. .center-solt {
  95. display: flex;
  96. align-items: center;
  97. width: 100%;
  98. }
  99. /* 左侧区域 */
  100. .left-content {
  101. display: flex;
  102. align-items: center; /* 垂直居中对齐 */
  103. }
  104. .img-left {
  105. width: 50px; /* 图片尺寸 */
  106. height: 50px;
  107. margin-right: 8px; /* 图片文字间距 */
  108. background: url('@/assets/images/fireNew/3-3.png') no-repeat center; /* 替换为实际图片路径 */
  109. background-size: contain;
  110. }
  111. /* 右侧区域 */
  112. .right-content {
  113. display: flex;
  114. align-items: center;
  115. }
  116. .img-right {
  117. width: 50px;
  118. height: 50px;
  119. margin-left: -10px;
  120. background: url('@/assets/images/fireNew/3-2.png') no-repeat center; /* 替换为实际图片路径 */
  121. background-size: contain;
  122. }
  123. /* 中间区域 */
  124. .center-content {
  125. text-align: center;
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. width: 330px;
  130. }
  131. /* 文字样式 */
  132. .title-left {
  133. width: 100px;
  134. font-size: 20px;
  135. }
  136. .title-right {
  137. width: 100px;
  138. font-size: 20px;
  139. }
  140. .center-top {
  141. margin-bottom: 14px;
  142. font-size: 20px;
  143. margin-left: -18px;
  144. }
  145. .center-bottom {
  146. font-size: 30px;
  147. color: #52b4e5; /* 红色字体 */
  148. font-weight: bold;
  149. letter-spacing: 15px;
  150. margin-bottom: 18px;
  151. }
  152. </style>