solution.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <div class="solution-banner"></div>
  3. <div class="solution-scene">
  4. <div class="center1440">
  5. <p class="headline">行业痛点场景</p>
  6. <div class="scene-content">
  7. <div
  8. class="scene-item"
  9. :style="{ 'background-image': `url(${item.bgImg})` }"
  10. v-for="item in sceneList"
  11. >
  12. <div class="scene-masking">
  13. <img class="masking-icon masking-img" :src="item.icon" />
  14. <img class="active-masking-img masking-icon" :src="item.activeIcon" />
  15. <p class="masking-label">{{ item.label }}</p>
  16. <p class="masking-value">{{ item.value }}</p>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script lang="ts" setup>
  24. import { ref } from "vue";
  25. import sceneBg_01 from "./../public/images/scene-bg-01.png";
  26. import sceneIocon_01 from "./../public/images/scene_icon_01.png";
  27. import sceneIocon_02 from "./../public/images/scene_icon_02.png";
  28. import sceneIocon_03 from "./../public/images/scene_icon_03.png";
  29. import sceneIocon_04 from "./../public/images/scene_icon_04.png";
  30. import ActiovceneIocon_01 from "./../public/images/scene_01.png";
  31. import ActiovceneIocon_02 from "./../public/images/scene_02.png";
  32. import ActiovceneIocon_03 from "./../public/images/scene_03.png";
  33. import ActiovceneIocon_04 from "./../public/images/scene_04.png";
  34. const sceneList = ref([
  35. {
  36. icon: sceneIocon_01,
  37. activeIcon: ActiovceneIocon_01,
  38. bgImg: sceneBg_01,
  39. label: "互联网行业",
  40. value: "用户隐私安全问题办公系统繁多企业宣传成本高",
  41. },
  42. {
  43. icon: sceneIocon_02,
  44. activeIcon: ActiovceneIocon_02,
  45. bgImg: sceneBg_01,
  46. label: "金融行业",
  47. value: "用户隐私安全问题办公系统繁多企业宣传成本高",
  48. },
  49. {
  50. icon: sceneIocon_03,
  51. activeIcon: ActiovceneIocon_03,
  52. bgImg: sceneBg_01,
  53. label: "电商行业",
  54. value: "用户隐私安全问题办公系统繁多企业宣传成本高",
  55. },
  56. {
  57. icon: sceneIocon_04,
  58. activeIcon: ActiovceneIocon_04,
  59. bgImg: sceneBg_01,
  60. label: "物流行业",
  61. value: "用户隐私安全问题办公系统繁多企业宣传成本高",
  62. },
  63. ]);
  64. </script>
  65. <style lang="scss" scoped>
  66. .solution-banner {
  67. width: 100%;
  68. min-height: 560px;
  69. font-family: var(--family-01);
  70. font-weight: var(--weight-400);
  71. background-image: url("../public/images/solution-banner.png");
  72. background-repeat: no-repeat;
  73. background-position: center center;
  74. background-size: cover;
  75. display: flex;
  76. align-items: center;
  77. }
  78. .solution-scene {
  79. width: 100%;
  80. .headline {
  81. text-align: center;
  82. font-size: 48px;
  83. font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  84. font-weight: 400;
  85. color: #1a1a1a;
  86. padding: var(--size-90) 0 var(--size-50);
  87. }
  88. .scene-content {
  89. display: flex;
  90. flex-direction: row;
  91. align-items: stretch;
  92. padding-bottom: 88px;
  93. .scene-item {
  94. width: 360px;
  95. height: 513px;
  96. background-repeat: no-repeat;
  97. background-position: center center;
  98. background-size: cover;
  99. position: relative;
  100. .scene-masking {
  101. display: flex;
  102. flex-direction: column;
  103. justify-content: center;
  104. align-items: center;
  105. position: absolute;
  106. left: 0;
  107. right: 0;
  108. top: 0;
  109. bottom: 0;
  110. padding: 0 40px;
  111. cursor: pointer;
  112. .masking-icon {
  113. width: 105px;
  114. height: 105px;
  115. }
  116. .active-masking-img {
  117. display: none;
  118. }
  119. .masking-label {
  120. font-size: 24px;
  121. font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  122. font-weight: 400;
  123. text-align: left;
  124. color: #ffffff;
  125. padding-top: 28px;
  126. }
  127. .masking-value {
  128. display: none;
  129. padding-top: 18px;
  130. font-size: 16px;
  131. font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  132. font-weight: 400;
  133. text-align: center;
  134. color: #e6e6e6;
  135. }
  136. &:hover {
  137. background-color: var(--color-05);
  138. .masking-img {
  139. display: none;
  140. }
  141. .active-masking-img {
  142. display: inline-block;
  143. }
  144. .masking-value {
  145. display: inline-block;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. </style>