WebCard.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <div class="case-container">
  3. <div class="case-title">应用场景</div>
  4. <div class="case-cards">
  5. <div class="tabs-list">
  6. <div v-for="(item, index) in cases" :key="index" class="tab-item" :class="{ active: activeIndex === index }"
  7. @click="activeIndex = index">
  8. {{ item.title }}
  9. </div>
  10. </div>
  11. <div class="tab-content">
  12. <transition name="fade" mode="out-in">
  13. <div :key="activeIndex" class="content-wrapper">
  14. <div class="text-content">
  15. <h3 class="title">{{ cases[activeIndex].title }}</h3>
  16. <p class="description">{{ cases[activeIndex].description }}</p>
  17. <h4 class="sub-title">业务价值</h4>
  18. <p class="value-desc">{{ cases[activeIndex].value }}</p>
  19. </div>
  20. </div>
  21. </transition>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script setup>
  27. const activeIndex = ref(0);
  28. const cases = [
  29. {
  30. title: '网站提速',
  31. description: '针对网页静态资源的优化和加速分发,解决网站流量激增时用户请求量、带宽负载增高、服务器压力过大以及站点响应缓慢的问题。',
  32. value: '通过压缩优化,快速加载大图、样式等资源,缩短网页响应时间,提升用户体验。访问数据决定回源行为,减少回源流量,提高请求命中率,降低带宽成本。',
  33. },
  34. {
  35. title: '下载加速',
  36. description: '适用于网站或应用的静态大文件分发,如游戏安装包、应用更新文件、补丁程序文件、音视频文件、建筑数据模型、医疗图像等较大的文件。',
  37. value: '通过海量加速节点,用户获得极速下载体验。分段缓存技术增强大文件下载的传输稳定性,确保顺畅的文件传输。',
  38. },
  39. {
  40. title: '音视频加速',
  41. description: '针对视频网站、短视频等业务场景,优化源站出口压力,解决用户在观看音视频时的卡顿和不流畅问题。',
  42. value: '通过海量加速节点支持高并发,提供高速稳定的资源分发,确保流畅、稳定和丰富的观看体验。同时,丰富的访问控制功能有效防止用户盗用媒体资源。',
  43. },
  44. {
  45. title: '安全防护',
  46. description: '黑客通过扫描发现互联网应用的安全漏洞,并利用爬虫、挂马、黑客病毒、数据泄露、CC攻击等手段入侵服务器和数据库,窃取核心业务数据。',
  47. value: '提供恶意URL过滤、入侵防护等全面的用户防护能力,有效防御常见Web攻击。同时提供Referer黑白名单和高阶URL鉴权,全面解决盗链问题。',
  48. }
  49. ];
  50. </script>
  51. <style lang="scss" scoped>
  52. .case-container {
  53. position: relative;
  54. padding: 40px 0;
  55. .case-title {
  56. text-align: center;
  57. font-size: 20px;
  58. font-weight: 500;
  59. background: linear-gradient(91deg, #B8AFFF 10.8%, #C597FF 108.3%);
  60. background-clip: text;
  61. -webkit-background-clip: text;
  62. -webkit-text-fill-color: transparent;
  63. margin-bottom: 26px;
  64. }
  65. .case-cards {
  66. width: 100%;
  67. }
  68. .tabs-list {
  69. display: flex;
  70. flex-direction: row;
  71. gap: 5px;
  72. padding-bottom: 8px;
  73. }
  74. .tab-item {
  75. width: 82px;
  76. height: 26px;
  77. border-radius: 2px;
  78. background: rgba(255, 255, 255, 0.10);
  79. color: rgba(255, 255, 255, 0.60);
  80. font-size: 14px;
  81. text-align: center;
  82. line-height: 26px;
  83. font-weight: 400;
  84. white-space: nowrap;
  85. &.active {
  86. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  87. color: #fff;
  88. }
  89. }
  90. .tab-content {
  91. margin-left: -16px;
  92. margin-right: -16px;
  93. padding: 30px 16px 0;
  94. width: 100%;
  95. height: 180px;
  96. background: url('/images/products/case-bg.png') no-repeat center;
  97. background-size: cover;
  98. color: #fff;
  99. }
  100. .content-wrapper {
  101. display: flex;
  102. flex-direction: column;
  103. }
  104. .text-content {
  105. display: flex;
  106. flex-direction: column;
  107. gap: 6px;
  108. .title {
  109. font-size: 16px;
  110. font-weight: 500;
  111. }
  112. .sub-title {
  113. font-size: 16px;
  114. font-weight: 500;
  115. margin-top: 8px;
  116. }
  117. .description {
  118. font-size: 10px;
  119. font-weight: 400;
  120. color: rgba(255, 255, 255, 0.85);
  121. }
  122. .value-desc {
  123. font-size: 10px;
  124. font-weight: 400;
  125. color: rgba(255, 255, 255, 0.85);
  126. }
  127. }
  128. }
  129. .fade-enter-active,
  130. .fade-leave-active {
  131. transition: opacity 0.3s ease;
  132. }
  133. .fade-enter-from,
  134. .fade-leave-to {
  135. opacity: 0;
  136. }
  137. </style>