ProductTabs.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. <template>
  2. <div class="product-tabs-container">
  3. <section class="product-tabs">
  4. <div
  5. v-for="(tab, index) in tabs"
  6. :key="index"
  7. class="tab-item"
  8. :class="{ active: activeTab === index }"
  9. @click="activeTab = index"
  10. >
  11. {{ tab }}
  12. </div>
  13. </section>
  14. <section class="product-cards-wrapper">
  15. <transition name="fade" mode="out-in">
  16. <section :key="activeTab" class="product-cards">
  17. <div class="product-card">
  18. <h3 class="card-title">{{ currentCards[0].title }}</h3>
  19. <p class="card-description">
  20. {{ currentCards[0].description }}
  21. </p>
  22. <div class="card-features">
  23. <span v-for="(feature, idx) in currentCards[0].features" :key="idx" class="feature-tag">{{ feature }}</span>
  24. </div>
  25. <div class="card-actions">
  26. <button class="btn-primary">更多详情</button>
  27. <button class="btn-secondary">0元体验</button>
  28. </div>
  29. </div>
  30. <div class="divider"></div>
  31. <div class="product-card">
  32. <h3 class="card-title">{{ currentCards[1].title }}</h3>
  33. <p class="card-description">
  34. {{ currentCards[1].description }}
  35. </p>
  36. <div class="card-features">
  37. <span v-for="(feature, idx) in currentCards[1].features" :key="idx" class="feature-tag">{{ feature }}</span>
  38. </div>
  39. <div class="card-actions">
  40. <button class="btn-primary">更多详情</button>
  41. <button class="btn-secondary">0元体验</button>
  42. </div>
  43. </div>
  44. <div class="divider"></div>
  45. <div class="product-card">
  46. <h3 class="card-title">{{ currentCards[2].title }}</h3>
  47. <p class="card-description">
  48. {{ currentCards[2].description }}
  49. </p>
  50. <div class="card-features">
  51. <span v-for="(feature, idx) in currentCards[2].features" :key="idx" class="feature-tag">{{ feature }}</span>
  52. </div>
  53. <div class="card-actions">
  54. <button class="btn-primary">更多详情</button>
  55. <button class="btn-secondary">0元体验</button>
  56. </div>
  57. </div>
  58. </section>
  59. </transition>
  60. </section>
  61. </div>
  62. </template>
  63. <script setup>
  64. import { ref, computed } from 'vue'
  65. const activeTab = ref(0)
  66. const tabs = [
  67. '网站安全加速',
  68. 'TCP业务安全',
  69. '客户端安全加速',
  70. '专家服务',
  71. '零信任安全访问',
  72. '出海业务保障'
  73. ]
  74. const cardData = [
  75. [
  76. {
  77. title: 'Web安全加速',
  78. description: '为游戏、电商、金融、医疗、门户等网站业务,提供DDoS、CC、页面篡改、爬虫等各类攻击防护,结合精准访问控制和全网联防联控,在抵御各类攻击的同时,保障网站业务的快速稳定访问。',
  79. features: ['支持HTTP、HTTPS和WebSocket协议', '适用网站类业务']
  80. },
  81. {
  82. title: 'DNS安全加速',
  83. description: '安全可靠的智能DNS解析服务,具备多重灾备机制,支持IPv4、IPv6双栈,全球及自定义智能解析线路,运营商缓存刷新,提供大QPS DNS查询攻击、大流量DNS DDoS攻击等针对域名解析的攻击防御服务,为网站域名提供安全、稳定、可靠的解析体验。',
  84. features: ['支持定制专用清洗集群']
  85. },
  86. {
  87. title: '扫描观测(漏洞扫描)',
  88. description: '为网站业务提供安全体检服务,模拟黑客视角,对网站业务进行可用性监测、内容安全监测、漏洞渗透性探测等风险多维度巡检综合评估,提出相应安全对策,告警安全事件,输出网站安全体检报告',
  89. features: ['支持HTTP、HTTPS和WebSocket协议', '适用网站类业务']
  90. }
  91. ],
  92. [
  93. {
  94. title: 'TCP/UDP游戏盾',
  95. description: '专为游戏、语音、视频、物联网等TCP/UDP业务设计,提供高性能、低延迟的DDoS防护服务,支持源站隐藏、智能调度、协议清洗,确保业务稳定运行。',
  96. features: ['支持TCP/UDP协议', '超低延迟转发', '游戏专用优化']
  97. },
  98. {
  99. title: 'UDP游戏加速',
  100. description: '针对FPS、MOBA等实时游戏场景优化,提供UDP协议加速服务,减少丢包和延迟,提升玩家游戏体验。',
  101. features: ['实时性优先', '全球节点覆盖', '智能路由']
  102. },
  103. {
  104. title: '端口防护',
  105. description: '对指定端口进行针对性防护,支持端口范围配置,灵活适配各种业务场景,精准过滤攻击流量。',
  106. features: ['支持端口段配置', '灵活策略配置', '实时监控']
  107. }
  108. ],
  109. [
  110. {
  111. title: 'APP安全加速',
  112. description: '为移动应用提供安全加速服务,整合SDK集成方式,实现APP端的DDoS防护、CC攻击防护,保障移动应用稳定运行。',
  113. features: ['Android/iOS双平台', '轻量级SDK', '自动更新']
  114. },
  115. {
  116. title: 'SDK游戏盾',
  117. description: '专为游戏客户端开发的安全SDK,内置多层防护算法,实现端到端的安全防护,有效对抗各类游戏攻击。',
  118. features: ['Unity/Unreal支持', '零侵入集成', '实时防护']
  119. },
  120. {
  121. title: 'H5安全加速',
  122. description: '为H5页面和小程序提供安全加速服务,支持混合开发框架,统一的安全防护策略,简化开发复杂度。',
  123. features: ['支持小程序', '混合开发兼容', '统一管理']
  124. }
  125. ],
  126. [
  127. {
  128. title: '安全评估服务',
  129. description: '专业的安全团队提供全方位的安全评估服务,包括渗透测试、漏洞扫描、安全加固等,帮助发现并修复安全隐患。',
  130. features: ['资深专家团队', '详细评估报告', '修复建议']
  131. },
  132. {
  133. title: '应急响应服务',
  134. description: '7x24小时应急响应服务,在发生安全事件时快速响应,协助客户进行攻击溯源、数据恢复、系统加固。',
  135. features: ['24小时在线', '快速响应', '溯源分析']
  136. },
  137. {
  138. title: '安全培训服务',
  139. description: '面向开发人员和运维人员的安全培训,提升团队安全意识和技能,预防安全问题的发生。',
  140. features: ['定制化课程', '实战演练', '认证证书']
  141. }
  142. ],
  143. [
  144. {
  145. title: '零信任访问控制',
  146. description: '基于零信任架构的访问控制服务,实现身份认证、设备信任、环境感知的多维安全验证,确保只有可信终端和用户才能访问资源。',
  147. features: ['多因素认证', '动态访问控制', '持续验证']
  148. },
  149. {
  150. title: '内网安全访问',
  151. description: '为远程办公和内网访问提供安全通道,替代传统VPN,提供更好的性能和安全性,支持细粒度的权限管理。',
  152. features: ['替代VPN', '高性能', '细粒度权限']
  153. },
  154. {
  155. title: '数据传输加密',
  156. description: '端到端的数据传输加密服务,保障数据在传输过程中的安全性,防止数据泄露和窃听。',
  157. features: ['国密算法', '端到端加密', '合规认证']
  158. }
  159. ],
  160. [
  161. {
  162. title: '全球CDN加速',
  163. description: '全球节点覆盖的CDN加速服务,为出海业务提供低延迟、高可用的内容分发,提升海外用户访问体验。',
  164. features: ['全球节点', '智能调度', '实时监控']
  165. },
  166. {
  167. title: 'DNS智能解析',
  168. description: '针对海外用户的智能DNS解析服务,根据用户地理位置返回最优节点IP,实现就近访问,降低延迟。',
  169. features: ['智能路由', '多线路支持', '快速切换']
  170. },
  171. {
  172. title: '合规服务支持',
  173. description: '了解并支持各国的网络安全和数据保护法规,帮助出海业务合规运营,降低法律风险。',
  174. features: ['GDPR支持', '多国合规', '法务咨询']
  175. }
  176. ]
  177. ]
  178. const currentCards = computed(() => cardData[activeTab.value])
  179. </script>
  180. <style scoped lang="scss">
  181. .product-tabs-container {
  182. width: 100%;
  183. }
  184. .product-tabs {
  185. width: 100%;
  186. max-width: 1200px;
  187. padding: 0 20px;
  188. box-sizing: border-box;
  189. height: 100px;
  190. margin: 0 auto;
  191. border-radius: 150px;
  192. background: linear-gradient(7.88deg, rgba(165, 101, 255, 0.3) 0%, rgba(3, 0, 20, 0.3) 100%);
  193. display: flex;
  194. align-items: center;
  195. gap: 60px;
  196. .tab-item {
  197. font-family: 'Source Han Sans CN', sans-serif;
  198. font-size: 16px;
  199. font-weight: 400;
  200. line-height: 16px;
  201. color: #ffffff;
  202. cursor: pointer;
  203. white-space: nowrap;
  204. transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  205. display: flex;
  206. align-items: center;
  207. justify-content: center;
  208. width: 177px;
  209. height: 60px;
  210. padding: 0;
  211. border-radius: 46.5px;
  212. background: transparent;
  213. &.active {
  214. background: linear-gradient(62.84deg, rgba(130, 77, 255, 1) 0%, rgba(164, 125, 255, 1) 100%);
  215. color: #ffffff;
  216. transform: translateY(0);
  217. }
  218. &:hover:not(.active) {
  219. color: #bdbdbd;
  220. transform: translateY(-2px);
  221. }
  222. }
  223. }
  224. .product-cards-wrapper {
  225. width: 100%;
  226. max-width: 1200px;
  227. margin: 81px auto 0;
  228. padding: 0 20px;
  229. box-sizing: border-box;
  230. }
  231. .product-cards {
  232. width: 100%;
  233. height: 474px;
  234. border-radius: 20px;
  235. background: linear-gradient(1.67deg, rgba(165, 101, 255, 0.3) 0%, rgba(3, 0, 20, 0.3) 100%);
  236. display: flex;
  237. align-items: center;
  238. justify-content: center;
  239. }
  240. .fade-enter-active,
  241. .fade-leave-active {
  242. transition: opacity 0.3s ease, transform 0.3s ease;
  243. }
  244. .fade-enter-from {
  245. opacity: 0;
  246. transform: translateY(10px);
  247. }
  248. .fade-leave-to {
  249. opacity: 0;
  250. transform: translateY(-10px);
  251. }
  252. .product-card {
  253. width: 266px;
  254. height: 336px;
  255. display: flex;
  256. flex-direction: column;
  257. justify-content: space-between;
  258. padding: 30px 0 35px 0;
  259. .card-title {
  260. font-family: 'Source Han Sans CN', sans-serif;
  261. font-size: 20px;
  262. font-weight: 500;
  263. line-height: 20px;
  264. color: #ffffff;
  265. margin: 0;
  266. text-align: center;
  267. }
  268. .card-description {
  269. width: 266px;
  270. font-family: 'Source Han Sans CN', sans-serif;
  271. font-size: 14px;
  272. font-weight: 400;
  273. line-height: 24px;
  274. color: #ffffff;
  275. margin: 0;
  276. text-align: left;
  277. word-wrap: break-word;
  278. }
  279. .card-features {
  280. width: 237px;
  281. display: flex;
  282. flex-direction: column;
  283. align-items: flex-start;
  284. .feature-tag {
  285. font-family: 'Source Han Sans CN', sans-serif;
  286. font-size: 14px;
  287. font-weight: 400;
  288. line-height: 14px;
  289. color: #9b71ff;
  290. margin-bottom: 12px;
  291. &:last-child {
  292. margin-bottom: 0;
  293. }
  294. }
  295. }
  296. .card-actions {
  297. width: 263px;
  298. display: flex;
  299. align-items: center;
  300. margin-top: 20px;
  301. .btn-primary {
  302. width: 120px;
  303. height: 40px;
  304. border-radius: 8px;
  305. background: linear-gradient(24.74deg, rgba(163, 157, 255, 1) 0%, rgba(125, 70, 255, 1) 100%);
  306. border: none;
  307. font-family: 'Source Han Sans CN', sans-serif;
  308. font-size: 14px;
  309. font-weight: 400;
  310. color: #ffffff;
  311. cursor: pointer;
  312. transition: opacity 0.3s ease;
  313. &:hover {
  314. opacity: 0.8;
  315. }
  316. }
  317. .btn-secondary {
  318. width: 120px;
  319. height: 40px;
  320. border-radius: 8px;
  321. border: 1px solid rgba(255, 255, 255, 0.5);
  322. background: rgba(255, 255, 255, 0.2);
  323. backdrop-filter: blur(15.2px);
  324. font-family: 'Source Han Sans CN', sans-serif;
  325. font-size: 14px;
  326. font-weight: 400;
  327. color: #ffffff;
  328. cursor: pointer;
  329. margin-left: 23px;
  330. transition: opacity 0.3s ease;
  331. &:hover {
  332. opacity: 0.8;
  333. }
  334. }
  335. }
  336. }
  337. .divider {
  338. width: 1px;
  339. height: 450px;
  340. background-color: rgba(255, 255, 255, 0.1);
  341. margin: 0 65.5px;
  342. }
  343. </style>