index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. <!--
  2. * @Author: LiZhiWei
  3. * @LastEditors: LiZhiWei
  4. * @LastEditTime: 2026-01-15 17:57:13
  5. * @Description:
  6. -->
  7. <template>
  8. <div class="landing">
  9. <section class="hero">
  10. <div class="hero-content flex items-center pb-48px pt-200px">
  11. <div class="text-left">
  12. <div class="font-s-48px font-semibold text-#000000">智慧社区整体解决方案</div>
  13. <p class="font-s-18px text-#091221/70">
  14. 绘家科技助力物业管理数字化转型,提升服务品质与业主满意度。
  15. </p>
  16. <div class="mt-35px flex items-center gap-48px">
  17. <div class="metric">
  18. <div class="metric-value">300+</div>
  19. <div class="metric-label">设备接入</div>
  20. </div>
  21. <div class="metric">
  22. <div class="metric-value">800+</div>
  23. <div class="metric-label">业务流程</div>
  24. </div>
  25. <div class="metric">
  26. <div class="metric-value">60w+</div>
  27. <div class="metric-label">服务人群</div>
  28. </div>
  29. </div>
  30. <div class="mt-35px flex flex-wrap items-center gap-16px">
  31. <button
  32. class="btn-primary w-127px h-56px! rounded-8px text-white font-s-18px pf-sc-semibold"
  33. >
  34. 查看方案
  35. </button>
  36. <button
  37. class="btn-outline w-127px h-56px! border-[1px] border-#0F67F8! font-s-18px font-semibold text-#0F67F8! bg-white rounded-8px hover:opacity-80"
  38. @click="openConsultation"
  39. >
  40. 立即咨询
  41. </button>
  42. </div>
  43. </div>
  44. </div>
  45. </section>
  46. <section
  47. id="solution"
  48. ref="solutionRef"
  49. class="solution h-744px pt-120px transition-all duration-1000 ease-out"
  50. :class="[isSolutionVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  51. >
  52. <div class="text-center mb-45px">
  53. <div class="font-s-36px font-semibold text-#000000 mb-4px">物业管理正面临这些挑战</div>
  54. <div class="font-s-16px text-#091221/70">
  55. 传统物业管理模式效率低下、成本高昂、服务体验差,急需数字化转型
  56. </div>
  57. </div>
  58. <div class="flex h-365px w-full gap-24px">
  59. <div
  60. v-for="(solution, index) in solutions"
  61. :key="solution.id"
  62. class="relative flex h-full cursor-pointer overflow-hidden rounded-16px transition-[flex,background-color] duration-500 ease-in-out"
  63. :class="[
  64. index === activeIndex
  65. ? 'flex-[1_1_0%] bg-[linear-gradient(0deg,#E5E9F5_0%,#EFF2FB_100%)]'
  66. : 'flex-[0_0_220px] bg-[linear-gradient(180deg,#E8F6FD_50.48%,#A5D7FD_100%)]',
  67. ]"
  68. @mouseenter="activeIndex = index"
  69. >
  70. <Transition
  71. mode="out-in"
  72. enter-active-class="transition-opacity duration-500 ease-in-out"
  73. enter-from-class="opacity-0"
  74. enter-to-class="opacity-100"
  75. leave-active-class="transition-opacity duration-200 ease-in-out"
  76. leave-from-class="opacity-100"
  77. leave-to-class="opacity-0"
  78. >
  79. <div v-if="index === activeIndex" class="wh-full pt-40px px-48px">
  80. <div class="font-s-22px text-#000000 pf-sc-semibold">
  81. {{ solution.hoverTitle }}
  82. </div>
  83. <div
  84. class="font-s-14px lh-24px mt-8px text-#091221/70 pf-sc-regular whitespace-nowrap"
  85. >
  86. {{ solution.hoverDesc }}
  87. </div>
  88. <div class="mt-24px flex flex-col gap-8px">
  89. <div v-for="item in solution.hoverItems" :key="item.title" class="flex flex-col">
  90. <div class="flex gap-8px items-center font-s-14px">
  91. <i class="i-custom-check-one wh-18px"></i>
  92. <span class="text-#091221 pf-sc-semibold">
  93. {{ item.title }}
  94. </span>
  95. <span class="text-#091221/70 pf-sc-regular">
  96. {{ item.itemDesc }}
  97. </span>
  98. </div>
  99. </div>
  100. </div>
  101. <button
  102. class="mt-56px h-48px! w-268px! bg-#0F67F8 text-white pf-sc-regular rounded-8px px-16px flex items-center justify-between hover:opacity-80"
  103. @click="openConsultation"
  104. >
  105. <span class="font-s-16px">立即咨询</span>
  106. <i class="i-custom-arrow-right wh-18px"></i>
  107. </button>
  108. <img
  109. :src="solution.hoverImg"
  110. alt=""
  111. class="wh-280px position-absolute bottom--37px right-0"
  112. />
  113. </div>
  114. <div v-else class="wh-full pt-40px px-24px">
  115. <div class="wh-40px ml-2px bg-white rounded-10px flex-center">
  116. <img :src="solution.img" alt="" class="wh-35px" />
  117. </div>
  118. <div class="mt-18px font-s-18px text-#091221 pf-sc-semibold">
  119. {{ solution.title }}
  120. </div>
  121. <div class="mt-8px font-s-14px lh-24px text-#091221/60 pf-sc-regular w-172px">
  122. {{ solution.desc }}
  123. </div>
  124. <i
  125. class="i-custom-circle-right-up wh-48px position-absolute bottom-24px left-24px"
  126. ></i>
  127. </div>
  128. </Transition>
  129. </div>
  130. </div>
  131. </section>
  132. <section
  133. id="ability"
  134. ref="abilityRef"
  135. class="ability transition-all duration-1000 ease-out"
  136. :class="[isAbilityVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  137. >
  138. <div class="font-s-36px text-#000000 pf-sc-semibold flex-center lh-60px">
  139. 一体化智慧解决方案
  140. </div>
  141. <div class="font-s-16px text-#091221/70 pf-sc-regular lh-30px flex-center mt-4px">
  142. 我们的一体化智慧解决方案整合了智能收费、智能运维、智能监控等多个功能模块,实现了物业管理的全流程数字化管理。
  143. </div>
  144. <div class="mt-24px flex-center flex-col">
  145. <div class="relative flex items-center rounded-14px border border-#ECEFF6 bg-#F6F8FD p-6px">
  146. <!-- 滑块背景 -->
  147. <div
  148. class="absolute w-136px h-[calc(100%-12px)] transition-all duration-300 ease-out rounded-8px bg-#0F67F8"
  149. :style="abilityTabIndicatorStyle"
  150. ></div>
  151. <div
  152. v-for="tab in abilityTabs"
  153. :key="tab.title"
  154. class="relative z-1 cursor-pointer py-14px px-20px text-center font-s-16px transition-colors duration-300 pf-sc-regular"
  155. :class="[
  156. activeAbilityTab.id === tab.id ? 'text-white' : 'text-#091221 hover:text-#0F67F8',
  157. ]"
  158. @click="handleAbilityTabClick(tab)"
  159. >
  160. {{ tab.title }}
  161. </div>
  162. </div>
  163. <div class="tab-content pt-45px">
  164. <Transition name="tab-fade" mode="out-in">
  165. <div :key="activeAbilityTab.id" class="grid grid-cols-3 gap-24px">
  166. <div
  167. v-for="ability in abilities[activeAbilityTab.id]"
  168. :key="ability.title"
  169. class="group relative flex flex-col rounded-16px border border-#ECEFF6 bg-[linear-gradient(0deg,_#FFFFFF_0%,_rgba(255,255,255,0.6)_100%)] p-24px transition-all duration-300 hover:border-#0F67F8/30 hover:shadow-[0_8px_24px_rgba(15,103,248,0.08)]"
  170. >
  171. <i :class="ability.icon" class="wh-48px"></i>
  172. <div class="mt-16px font-s-18px font-semibold text-#091221 pf-sc-semibold">
  173. {{ ability.title }}
  174. </div>
  175. <div class="mt-8px flex-1 font-s-14px text-#091221/70 pf-sc-regular">
  176. {{ ability.desc }}
  177. </div>
  178. <div
  179. class="mt-24px flex items-center gap-8px font-s-16px pf-sc-regular text-#0F67F8 transition-colors hover:text-#0A50FF cursor-pointer"
  180. >
  181. 查看详情
  182. <i
  183. class="i-custom-arrow-right-c color-#0F67F8 wh-18px transition-transform group-hover:translate-x-4px"
  184. ></i>
  185. </div>
  186. </div>
  187. </div>
  188. </Transition>
  189. </div>
  190. </div>
  191. </section>
  192. <section
  193. id="cases"
  194. ref="casesRef"
  195. class="cases pt-120px pb-46px transition-all duration-1000 ease-out"
  196. :class="[isCasesVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  197. >
  198. <div class="text-center mb-60px">
  199. <div class="font-s-36px font-semibold text-#000000 pf-sc-semibold mb-12px">
  200. 知识产权和案例
  201. </div>
  202. <div class="font-s-16px text-#091221/70 pf-sc-regular">
  203. 绘家科技凭借强大的技术实力和丰富的实践经验,为客户提供卓越的智慧社区解决方案
  204. </div>
  205. </div>
  206. <div class="flex gap-24px">
  207. <div
  208. v-for="caseItem in cases"
  209. :key="caseItem.title"
  210. class="group flex-1 overflow-hidden rounded-16px bg-#F6F8FD p-32px transition-all duration-300"
  211. >
  212. <div class="flex flex-col">
  213. <img :src="caseItem.img" class="w-full h-218px rounded-12px" alt="" />
  214. <div class="font-s-18px font-semibold text-#091221 pf-sc-semibold mt-24px">
  215. {{ caseItem.title }}
  216. </div>
  217. <div class="mt-8px font-s-14px lh-24px text-#091221/70 pf-sc-regular">
  218. {{ caseItem.desc }}
  219. </div>
  220. <div class="mt-24px flex flex-col gap-8px">
  221. <div
  222. v-for="point in caseItem.points"
  223. :key="point.title"
  224. class="flex items-center gap-8px"
  225. >
  226. <i class="i-custom-check-one wh-20px mt-2px"></i>
  227. <div class="font-s-14px font-semibold text-#091221 pf-sc-semibold">
  228. {{ point.title }}
  229. </div>
  230. <div class="font-s-14px text-#091221/70 pf-sc-regular">
  231. {{ point.itemDesc }}
  232. </div>
  233. </div>
  234. </div>
  235. <button
  236. class="mt-56px flex items-center justify-between gap-8px rounded-8px bg-white px-16px py-15px font-s-16px text-#0F67F8 transition-all hover:bg-#0F67F8 hover:text-white"
  237. >
  238. {{ caseItem.btnText }}
  239. <i class="i-custom-arrow-right-c wh-18px"></i>
  240. </button>
  241. </div>
  242. </div>
  243. </div>
  244. </section>
  245. <section
  246. id="partnership"
  247. ref="partnershipRef"
  248. class="partnership py-60px overflow-hidden transition-all duration-1000 ease-out"
  249. :class="[isPartnershipVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  250. >
  251. <div class="flex-center gap-32px mb-40px">
  252. <div class="h-2px w-320px bg-[linear-gradient(90deg,transparent_0%,#E5E9F5_100%)]"></div>
  253. <div class="text-center font-s-18px lh-21px text-#9CA0A7 pf-sc-regular whitespace-nowrap">
  254. 与合作伙伴携手,深入产业共创价值
  255. </div>
  256. <div class="h-2px w-320px bg-[linear-gradient(90deg,#E5E9F5_0%,transparent_100%)]"></div>
  257. </div>
  258. <div class="relative flex flex-col gap-0px -mt-24px">
  259. <!-- 第一行 -->
  260. <InspiraMarquee class="[--duration:80s] [--gap:24px] mb--31px">
  261. <div
  262. v-for="partner in partnersRow1"
  263. :key="partner"
  264. class="flex-center h-80px w-200px bg-white rounded-8px shadow-[0_2px_8px_2px_rgba(0,0,0,0.06)] px-24px"
  265. >
  266. <img :src="partner" alt="" class="wh-full object-contain" />
  267. </div>
  268. </InspiraMarquee>
  269. <!-- 第二行 -->
  270. <InspiraMarquee reverse class="[--duration:80s] [--delay:-20s] [--gap:24px]">
  271. <div
  272. v-for="partner in partnersRow2"
  273. :key="partner"
  274. class="flex-center h-80px w-200px bg-white rounded-8px shadow-[0_2px_8px_2px_rgba(0,0,0,0.06)] px-24px"
  275. >
  276. <img :src="partner" alt="" class="wh-full object-contain" />
  277. </div>
  278. </InspiraMarquee>
  279. <!-- 左右渐变遮罩 -->
  280. <div
  281. class="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-[linear-gradient(to_right,#fff,transparent)]"
  282. ></div>
  283. <div
  284. class="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-[linear-gradient(to_left,#fff,transparent)]"
  285. ></div>
  286. </div>
  287. </section>
  288. <section id="history" ref="timelineRef" class="history">
  289. <div
  290. class="flex flex-col items-center transition-all duration-1000"
  291. :class="[isTimelineVisible ? 'translate-y-0 opacity-100' : 'translate-y-40px opacity-0']"
  292. >
  293. <div
  294. class="pf-sc-semibold font-semibold font-s-36px text-#000000 lh-60px text-center mb-12px"
  295. >
  296. 发展历程
  297. </div>
  298. <div class="font-s-16px text-#091221/70 pf-sc-regular text-center lh-30px mb-50px">
  299. 从探索到引领,绘家科技每一步都坚实有力
  300. </div>
  301. <!-- 上部内容区 -->
  302. <div class="w-full h-255px flex py-50px items-center">
  303. <!-- 左侧大年份 -->
  304. <div v-if="currentYearData" class="relative pl-127px w-600px shrink-0">
  305. <span
  306. class="text-170px font-bold text-#0F67F8 pf-sc-bold select-none"
  307. style="-webkit-text-stroke: 1px #2563eb; text-shadow: 0 0 20px rgba(37, 99, 235, 0.1)"
  308. >
  309. {{ currentYearData.year }}
  310. </span>
  311. </div>
  312. <!-- 右侧事件描述 -->
  313. <div v-if="currentEventData" class="flex-1 h-full flex flex-col justify-start pt-14px">
  314. <div class="flex justify-between items-center">
  315. <span class="text-22px font-semibold lh-30.8px text-#091221 pf-sc-semibold flex-1">
  316. {{ currentEventData.month }}
  317. </span>
  318. <!-- 右上方小切换 -->
  319. <div v-if="(currentYearData?.events?.length ?? 0) > 1" class="flex gap-12px">
  320. <i
  321. class="i-custom-arrow-circle-left wh-32px transition-all"
  322. :class="[
  323. currentEventIndex === 0
  324. ? 'opacity-30 cursor-not-allowed'
  325. : 'cursor-pointer hover:i-custom-arrow-circle-left-active',
  326. ]"
  327. @click="prevEvent"
  328. ></i>
  329. <i
  330. class="i-custom-arrow-circle-right wh-32px transition-all"
  331. :class="[
  332. currentEventIndex === (currentYearData?.events?.length ?? 0) - 1
  333. ? 'opacity-30 cursor-not-allowed'
  334. : 'cursor-pointer hover:i-custom-arrow-circle-right-active',
  335. ]"
  336. @click="nextEvent"
  337. ></i>
  338. </div>
  339. </div>
  340. <div class="h-2px w-34px bg-#0F67F8 mt-11px"></div>
  341. <div class="flex-1 text-20px lh-35px text-#091221/70 pf-sc-regular mt-26px pr-114px">
  342. {{ currentEventData.content }}
  343. </div>
  344. </div>
  345. </div>
  346. <!-- 时间轴 -->
  347. <div class="w-full relative pt-47px pb-60px">
  348. <!-- 轨道容器 -->
  349. <div class="relative h-16px w-full bg-white rounded-full px-60px">
  350. <!-- 进度条:从轨道最左侧开始到当前点 -->
  351. <div
  352. class="absolute left-0 top-0 h-full bg-gradient-to-r from-[#60A5FA] to-[#2563EB] rounded-full transition-all duration-500 ease-out z-1"
  353. :style="progressStyle"
  354. ></div>
  355. <!-- 内部轨道(用于定位时间点) -->
  356. <div class="relative h-full w-full">
  357. <!-- 时间点列表 -->
  358. <div
  359. v-for="(item, index) in historyYears"
  360. :key="item.year"
  361. class="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 flex flex-col items-center cursor-pointer group z-2"
  362. :style="getTimelineNodePositionStyle(index)"
  363. @click="selectYear(index)"
  364. >
  365. <!-- 圆点 -->
  366. <div
  367. class="rounded-full transition-all duration-300 relative bg-white"
  368. :class="getTimelineDotClasses(index)"
  369. :style="getTimelineDotStyle(index)"
  370. ></div>
  371. <!-- 年份文字 -->
  372. <span
  373. class="absolute top-24px text-16px transition-all duration-300 whitespace-nowrap"
  374. :class="getTimelineYearTextClasses(index)"
  375. >
  376. {{ item.year }}
  377. </span>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <!-- 底部大切换 -->
  383. <div class="flex gap-24px mt-45px">
  384. <i
  385. class="wh-56px i-custom-button-previous hover:i-custom-button-previous-active flex-center cursor-pointer"
  386. :class="{
  387. 'opacity-30 cursor-not-allowed hover:i-custom-button-previous!':
  388. currentYearIndex === 0,
  389. }"
  390. @click="prevYear"
  391. ></i>
  392. <i
  393. class="wh-56px i-custom-button-next hover:i-custom-button-next-active flex-center cursor-pointer"
  394. :class="{
  395. 'opacity-30 cursor-not-allowed hover:i-custom-button-next!':
  396. currentYearIndex === historyYears.length - 1,
  397. }"
  398. @click="nextYear"
  399. ></i>
  400. </div>
  401. </div>
  402. </section>
  403. <section class="cta py-60px flex-center flex-col">
  404. <div class="pf-sc-semibold font-s-40px lh-56px text-center">开启您的智慧社区转型之旅</div>
  405. <div class="font-s-18px text-#232325 pf-sc-light">
  406. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  407. </div>
  408. <button
  409. class="h-52px! mt-22px w-268px! bg-#0F67F8 text-white pf-sc-regular rounded-8px px-16px flex items-center justify-between hover:opacity-80"
  410. @click="openConsultation"
  411. >
  412. <span class="font-s-16px">立即咨询</span>
  413. <i class="i-custom-arrow-right wh-18px"></i>
  414. </button>
  415. </section>
  416. </div>
  417. </template>
  418. <script setup lang="ts">
  419. import {
  420. abilityTabs,
  421. solutions,
  422. abilities,
  423. cases,
  424. partnersRow1,
  425. partnersRow2,
  426. historyYears,
  427. } from '@/constants/common'
  428. const { openConsultation } = useConsultation()
  429. const activeIndex = ref(0)
  430. const solutionRef = ref<HTMLElement | null>(null)
  431. const abilityRef = ref<HTMLElement | null>(null)
  432. const partnershipRef = ref<HTMLElement | null>(null)
  433. const casesRef = ref<HTMLElement | null>(null)
  434. const timelineRef = ref<HTMLElement | null>(null)
  435. const isSolutionVisible = ref(false)
  436. const isAbilityVisible = ref(false)
  437. const isPartnershipVisible = ref(false)
  438. const isCasesVisible = ref(false)
  439. const isTimelineVisible = ref(false)
  440. // 发展历程状态
  441. const currentYearIndex = ref(historyYears.length - 1)
  442. const currentEventIndex = ref(0)
  443. const currentYearData = computed(() => {
  444. const data = historyYears[currentYearIndex.value]
  445. return data || historyYears[0]
  446. })
  447. const currentEventData = computed(() => {
  448. const events = currentYearData.value?.events || []
  449. return events[currentEventIndex.value] || events[0]
  450. })
  451. const progressStyle = computed(() => {
  452. const totalSteps = Math.max(historyYears.length - 1, 1)
  453. if (currentYearIndex.value === totalSteps) {
  454. return {
  455. width: '100%',
  456. }
  457. }
  458. const percentage = currentYearIndex.value / totalSteps
  459. return {
  460. width: `calc(60px + ${percentage} * (100% - 120px))`,
  461. }
  462. })
  463. const nextYear = () => {
  464. if (currentYearIndex.value < historyYears.length - 1) {
  465. currentYearIndex.value++
  466. currentEventIndex.value = 0
  467. }
  468. }
  469. const prevYear = () => {
  470. if (currentYearIndex.value > 0) {
  471. currentYearIndex.value--
  472. currentEventIndex.value = 0
  473. }
  474. }
  475. const nextEvent = () => {
  476. const events = currentYearData.value?.events || []
  477. if (currentEventIndex.value < events.length - 1) {
  478. currentEventIndex.value++
  479. }
  480. }
  481. const prevEvent = () => {
  482. if (currentEventIndex.value > 0) {
  483. currentEventIndex.value--
  484. }
  485. }
  486. const selectYear = (index: number) => {
  487. currentYearIndex.value = index
  488. currentEventIndex.value = 0
  489. }
  490. const activeAbilityTab = ref<AbilityTab>(abilityTabs[0] as AbilityTab)
  491. const abilityTabIndicatorStyle = computed(() => {
  492. const activeTabIndex = abilityTabs.findIndex((tab) => tab.id === activeAbilityTab.value.id)
  493. return {
  494. transform: `translateX(${activeTabIndex * 136}px)`,
  495. }
  496. })
  497. const handleAbilityTabClick = (tab: AbilityTab) => {
  498. activeAbilityTab.value = tab
  499. }
  500. onMounted(() => {
  501. const revealSections = [
  502. { elRef: solutionRef, visible: isSolutionVisible },
  503. { elRef: abilityRef, visible: isAbilityVisible },
  504. { elRef: partnershipRef, visible: isPartnershipVisible },
  505. { elRef: casesRef, visible: isCasesVisible },
  506. { elRef: timelineRef, visible: isTimelineVisible },
  507. ]
  508. const observer = new IntersectionObserver(
  509. (entries) => {
  510. entries.forEach((entry) => {
  511. if (entry.isIntersecting) {
  512. const matched = revealSections.find((item) => item.elRef.value === entry.target)
  513. if (matched) {
  514. matched.visible.value = true
  515. }
  516. observer.unobserve(entry.target)
  517. }
  518. })
  519. },
  520. { threshold: 0.1 }
  521. )
  522. revealSections.forEach(({ elRef }) => {
  523. if (elRef.value) {
  524. observer.observe(elRef.value)
  525. }
  526. })
  527. })
  528. const getTimelineNodePositionStyle = (index: number) => {
  529. return { left: `${(index / (historyYears.length - 1)) * 100}%` }
  530. }
  531. const getTimelineDotClasses = (index: number) => {
  532. return [
  533. index < currentYearIndex.value
  534. ? 'wh-13px'
  535. : 'wh-16px border-#0F67F8 group-hover:border-[#2563EB] border-1',
  536. index === currentYearIndex.value
  537. ? 'wh-16px scale-150 outline-6px outline-#CEE0FF outline-solid border-none'
  538. : '',
  539. ]
  540. }
  541. const getTimelineDotStyle = (index: number) => {
  542. if (index === currentYearIndex.value) {
  543. return { background: 'linear-gradient(90deg, #779EFF 0%, #0A50FF 100%)' }
  544. }
  545. if (index < currentYearIndex.value) {
  546. return { background: '#FFFFFF' }
  547. }
  548. return {}
  549. }
  550. const getTimelineYearTextClasses = (index: number) => {
  551. return [
  552. index === currentYearIndex.value
  553. ? 'text-#2563EB font-bold pf-sc-bold scale-110'
  554. : 'text-#94A3B8 group-hover:text-[#64748B]',
  555. ]
  556. }
  557. </script>
  558. <style scoped lang="scss">
  559. .landing {
  560. color: var(--hj-text);
  561. background: var(--hj-bg);
  562. }
  563. .hero {
  564. @apply h-680px relative overflow-hidden;
  565. background-size: cover;
  566. background-position: center;
  567. background-image: url('@/assets/images/banner.png');
  568. .hero-content {
  569. @extend %landing-container;
  570. }
  571. .metric {
  572. @apply flex items-start flex-col;
  573. .metric-value {
  574. @apply font-s-32px font-semibold text-#0F67F8;
  575. }
  576. .metric-label {
  577. @apply font-s-14px text-#384146;
  578. }
  579. }
  580. }
  581. .solution {
  582. @extend %landing-container;
  583. }
  584. .ability {
  585. @apply py-120px;
  586. @extend %landing-container;
  587. background-size: 100% 100%;
  588. background-image: url('@/assets/images/bg-ability.png');
  589. }
  590. .cases {
  591. @extend %landing-container;
  592. }
  593. .partnership {
  594. @extend %landing-container;
  595. @media screen and (min-width: 1920px) {
  596. padding-left: 220px;
  597. padding-right: 220px;
  598. }
  599. }
  600. .tab-fade-enter-active {
  601. transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  602. }
  603. .tab-fade-leave-active {
  604. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  605. }
  606. .tab-fade-enter-from {
  607. opacity: 0;
  608. transform: translateX(30px);
  609. }
  610. .tab-fade-leave-to {
  611. opacity: 0;
  612. transform: translateX(-30px);
  613. }
  614. /* 卡片级联动画 */
  615. .grid > div {
  616. animation: card-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  617. }
  618. @for $i from 1 through 10 {
  619. .grid > div:nth-child(#{$i}) {
  620. animation-delay: #{$i * 0.05}s;
  621. }
  622. }
  623. @keyframes card-slide-up {
  624. from {
  625. opacity: 0;
  626. transform: translateY(20px);
  627. }
  628. to {
  629. opacity: 1;
  630. transform: translateY(0);
  631. }
  632. }
  633. .btn-primary {
  634. @apply bg-gradient-to-r from-[#779EFF] to-[#0A50FF];
  635. border: none;
  636. outline: none;
  637. //hover 背景颜色
  638. &:hover {
  639. opacity: 0.8;
  640. }
  641. }
  642. .history {
  643. @apply overflow-hidden relative py-60px;
  644. @extend %landing-container;
  645. background-size: cover;
  646. background-position: center;
  647. background-image: url('@/assets/images/history-bg.png');
  648. }
  649. .cta {
  650. @apply w-full h-276px;
  651. background-size: cover;
  652. background-position: center;
  653. background-image: url('@/assets/images/bg-3.png');
  654. }
  655. </style>