ProductTabs.vue 12 KB

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