index.vue 25 KB

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