index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. <!--
  2. * @Author: LiZhiWei
  3. * @LastEditors: LiZhiWei
  4. * @LastEditTime: 2026-01-15 17:43:24
  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="rounded-full transition-all duration-300 relative bg-white"
  370. :class="[
  371. index < currentYearIndex
  372. ? 'wh-13px'
  373. : 'wh-16px border-#0F67F8 group-hover:border-[#2563EB] border-1',
  374. index === currentYearIndex
  375. ? 'wh-16px 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. : index < currentYearIndex
  382. ? { background: '#FFFFFF' }
  383. : {}
  384. "
  385. ></div>
  386. <!-- 年份文字 -->
  387. <span
  388. class="absolute top-24px text-16px transition-all duration-300 whitespace-nowrap"
  389. :class="[
  390. index === currentYearIndex
  391. ? 'text-#2563EB font-bold pf-sc-bold scale-110'
  392. : 'text-#94A3B8 group-hover:text-[#64748B]',
  393. ]"
  394. >
  395. {{ item.year }}
  396. </span>
  397. </div>
  398. </div>
  399. </div>
  400. </div>
  401. <!-- 底部大切换 -->
  402. <div class="flex gap-24px mt-45px">
  403. <i
  404. class="wh-56px i-custom-button-previous hover:i-custom-button-previous-active flex-center cursor-pointer"
  405. :class="{
  406. 'opacity-30 cursor-not-allowed hover:i-custom-button-previous!':
  407. currentYearIndex === 0,
  408. }"
  409. @click="prevYear"
  410. ></i>
  411. <i
  412. class="wh-56px i-custom-button-next hover:i-custom-button-next-active flex-center cursor-pointer"
  413. :class="{
  414. 'opacity-30 cursor-not-allowed hover:i-custom-button-next!':
  415. currentYearIndex === historyYears.length - 1,
  416. }"
  417. @click="nextYear"
  418. ></i>
  419. </div>
  420. </div>
  421. </section>
  422. <section class="cta py-60px flex-center flex-col">
  423. <div class="pf-sc-semibold font-s-40px lh-56px text-center">开启您的智慧社区转型之旅</div>
  424. <div class="font-s-18px text-#232325 pf-sc-light">
  425. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  426. </div>
  427. <button
  428. 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"
  429. @click="openConsultation"
  430. >
  431. <span class="font-s-16px">立即咨询</span>
  432. <i class="i-custom-arrow-right wh-18px"></i>
  433. </button>
  434. </section>
  435. </div>
  436. </template>
  437. <script setup lang="ts">
  438. import {
  439. abilityTabs,
  440. solutions,
  441. abilities,
  442. cases,
  443. partnersRow1,
  444. partnersRow2,
  445. historyYears,
  446. } from '@/constants/common'
  447. const { openConsultation } = useConsultation()
  448. const activeIndex = ref(0)
  449. const solutionRef = ref<HTMLElement | null>(null)
  450. const abilityRef = ref<HTMLElement | null>(null)
  451. const partnershipRef = ref<HTMLElement | null>(null)
  452. const casesRef = ref<HTMLElement | null>(null)
  453. const timelineRef = ref<HTMLElement | null>(null)
  454. const isSolutionVisible = ref(false)
  455. const isAbilityVisible = ref(false)
  456. const isPartnershipVisible = ref(false)
  457. const isCasesVisible = ref(false)
  458. const isTimelineVisible = ref(false)
  459. // 发展历程状态
  460. const currentYearIndex = ref(historyYears.length - 1)
  461. const currentEventIndex = ref(0)
  462. const currentYearData = computed(() => {
  463. const data = historyYears[currentYearIndex.value]
  464. return data || historyYears[0]
  465. })
  466. const currentEventData = computed(() => {
  467. const events = currentYearData.value?.events || []
  468. return events[currentEventIndex.value] || events[0]
  469. })
  470. const progressStyle = computed(() => {
  471. const totalSteps = Math.max(historyYears.length - 1, 1)
  472. if (currentYearIndex.value === totalSteps) {
  473. return {
  474. width: '100%',
  475. }
  476. }
  477. const percentage = currentYearIndex.value / totalSteps
  478. return {
  479. width: `calc(60px + ${percentage} * (100% - 120px))`,
  480. }
  481. })
  482. const nextYear = () => {
  483. if (currentYearIndex.value < historyYears.length - 1) {
  484. currentYearIndex.value++
  485. currentEventIndex.value = 0
  486. }
  487. }
  488. const prevYear = () => {
  489. if (currentYearIndex.value > 0) {
  490. currentYearIndex.value--
  491. currentEventIndex.value = 0
  492. }
  493. }
  494. const nextEvent = () => {
  495. const events = currentYearData.value?.events || []
  496. if (currentEventIndex.value < events.length - 1) {
  497. currentEventIndex.value++
  498. }
  499. }
  500. const prevEvent = () => {
  501. if (currentEventIndex.value > 0) {
  502. currentEventIndex.value--
  503. }
  504. }
  505. const selectYear = (index: number) => {
  506. currentYearIndex.value = index
  507. currentEventIndex.value = 0
  508. }
  509. const activeAbilityTab = ref<AbilityTab>(abilityTabs[0] as AbilityTab)
  510. const handleAbilityTabClick = (tab: AbilityTab) => {
  511. activeAbilityTab.value = tab
  512. }
  513. onMounted(() => {
  514. const observer = new IntersectionObserver(
  515. (entries) => {
  516. entries.forEach((entry) => {
  517. if (entry.isIntersecting) {
  518. if (entry.target === solutionRef.value) {
  519. isSolutionVisible.value = true
  520. }
  521. if (entry.target === abilityRef.value) {
  522. isAbilityVisible.value = true
  523. }
  524. if (entry.target === partnershipRef.value) {
  525. isPartnershipVisible.value = true
  526. }
  527. if (entry.target === casesRef.value) {
  528. isCasesVisible.value = true
  529. }
  530. if (entry.target === timelineRef.value) {
  531. isTimelineVisible.value = true
  532. }
  533. observer.unobserve(entry.target)
  534. }
  535. })
  536. },
  537. { threshold: 0.1 }
  538. )
  539. if (solutionRef.value) {
  540. observer.observe(solutionRef.value)
  541. }
  542. if (abilityRef.value) {
  543. observer.observe(abilityRef.value)
  544. }
  545. if (partnershipRef.value) {
  546. observer.observe(partnershipRef.value)
  547. }
  548. if (casesRef.value) {
  549. observer.observe(casesRef.value)
  550. }
  551. if (timelineRef.value) {
  552. observer.observe(timelineRef.value)
  553. }
  554. })
  555. </script>
  556. <style scoped lang="scss">
  557. .landing {
  558. color: var(--hj-text);
  559. background: var(--hj-bg);
  560. }
  561. .hero {
  562. @apply h-680px relative overflow-hidden;
  563. background-size: cover;
  564. background-position: center;
  565. background-image: url('@/assets/images/banner.png');
  566. .hero-content {
  567. @extend %landing-container;
  568. }
  569. .metric {
  570. @apply flex items-start flex-col;
  571. .metric-value {
  572. @apply font-s-32px font-semibold text-#0F67F8;
  573. }
  574. .metric-label {
  575. @apply font-s-14px text-#384146;
  576. }
  577. }
  578. }
  579. .solution {
  580. @extend %landing-container;
  581. }
  582. .ability {
  583. @apply py-120px;
  584. @extend %landing-container;
  585. background-size: 100% 100%;
  586. background-image: url('@/assets/images/bg-ability.png');
  587. }
  588. .cases {
  589. @extend %landing-container;
  590. }
  591. .partnership {
  592. @extend %landing-container;
  593. @media screen and (min-width: 1920px) {
  594. padding-left: 220px;
  595. padding-right: 220px;
  596. }
  597. }
  598. .tab-fade-enter-active {
  599. transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  600. }
  601. .tab-fade-leave-active {
  602. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  603. }
  604. .tab-fade-enter-from {
  605. opacity: 0;
  606. transform: translateX(30px);
  607. }
  608. .tab-fade-leave-to {
  609. opacity: 0;
  610. transform: translateX(-30px);
  611. }
  612. /* 卡片级联动画 */
  613. .grid > div {
  614. animation: card-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  615. }
  616. @for $i from 1 through 10 {
  617. .grid > div:nth-child(#{$i}) {
  618. animation-delay: #{$i * 0.05}s;
  619. }
  620. }
  621. @keyframes card-slide-up {
  622. from {
  623. opacity: 0;
  624. transform: translateY(20px);
  625. }
  626. to {
  627. opacity: 1;
  628. transform: translateY(0);
  629. }
  630. }
  631. .btn-primary {
  632. @apply bg-gradient-to-r from-[#779EFF] to-[#0A50FF];
  633. border: none;
  634. outline: none;
  635. //hover 背景颜色
  636. &:hover {
  637. opacity: 0.8;
  638. }
  639. }
  640. .history {
  641. @apply overflow-hidden relative py-60px;
  642. @extend %landing-container;
  643. background-size: cover;
  644. background-position: center;
  645. background-image: url('@/assets/images/history-bg.png');
  646. }
  647. .cta {
  648. @apply w-full h-276px;
  649. background-size: cover;
  650. background-position: center;
  651. background-image: url('@/assets/images/bg-3.png');
  652. }
  653. </style>