index.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152
  1. <!--
  2. * @Author: LiZhiWei
  3. * @LastEditors: LiZhiWei
  4. * @LastEditTime: 2026-01-19 12:12:17
  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 lt-sm:pt-80px">
  11. <div class="text-left w-full lt-sm:text-center">
  12. <div class="hero-title">智慧社区整体解决方案</div>
  13. <div class="hero-subtitle">
  14. 绘家科技助力物业管理数字化转型,提升服务品质与业主满意度。
  15. </div>
  16. <div
  17. class="mt-35px flex items-center gap-48px lt-sm:justify-center lt-sm:mt-20px lt-sm:gap-76px"
  18. >
  19. <div class="metric">
  20. <div class="metric-value">300+</div>
  21. <div class="metric-label">服务客户</div>
  22. </div>
  23. <div class="metric">
  24. <div class="metric-value">800+</div>
  25. <div class="metric-label">管理小区</div>
  26. </div>
  27. <div class="metric">
  28. <div class="metric-value">50w+</div>
  29. <div class="metric-label">管理房屋</div>
  30. </div>
  31. </div>
  32. <div class="hero-actions">
  33. <button class="btn-primary hero-btn-primary">查看方案</button>
  34. <button class="hero-btn-outline" @click="openConsultation">免费咨询</button>
  35. </div>
  36. </div>
  37. </div>
  38. </section>
  39. <section
  40. id="solution"
  41. ref="solutionRef"
  42. class="solution py-120px transition-all duration-1000 ease-out"
  43. :class="[isSolutionVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  44. >
  45. <div class="text-center mb-45px">
  46. <div
  47. class="font-s-36px font-semibold text-#000000 mb-4px lh-60px lt-sm:font-s-48px lt-sm:lh-60px"
  48. >
  49. 物业管理正面临这些挑战
  50. </div>
  51. <div
  52. class="font-s-16px text-#091221/70 lh-30px lt-sm:font-s-24px lt-sm:px-110px lt-sm:mt-16px lt-sm:lh-40px"
  53. >
  54. 传统物业管理模式效率低下、成本高昂、服务体验差,急需数字化转型
  55. </div>
  56. </div>
  57. <div class="solution-list" ref="solutionListRef" @scroll="handleSolutionScroll">
  58. <div
  59. v-for="(solution, index) in solutions"
  60. :key="solution.id"
  61. class="solution-card"
  62. :class="[
  63. index === activeIndex
  64. ? 'active bg-[linear-gradient(0deg,#E5E9F5_0%,#EFF2FB_100%)]'
  65. : 'bg-[linear-gradient(180deg,#E8F6FD_50.48%,#A5D7FD_100%)] lt-sm:bg-[linear-gradient(0deg,#E5E9F5_0%,#EFF2FB_100%)]',
  66. ]"
  67. @mouseenter="activeIndex = index"
  68. >
  69. <!-- Hover State Content -->
  70. <div
  71. class="solution-card-hover"
  72. :class="[
  73. index === activeIndex
  74. ? 'opacity-100 translate-y-0 duration-500'
  75. : 'opacity-0 translate-y-20px pointer-events-none duration-300 mobile-show',
  76. ]"
  77. >
  78. <div
  79. class="font-s-22px text-#000000 pf-sc-semibold transition-all lt-sm:font-s-32px"
  80. :class="[
  81. index === activeIndex
  82. ? 'opacity-100 translate-y-0 delay-100 duration-500'
  83. : 'opacity-0 translate-y-20px delay-0 duration-200',
  84. ]"
  85. >
  86. <span class="lt-sm:hidden">{{ solution.hoverTitle }}</span>
  87. <span>{{ solution.title }}解决方案</span>
  88. </div>
  89. <div
  90. class="font-s-14px lh-24px mt-8px text-#091221/70 pf-sc-regular text-overflow transition-all lt-sm:font-s-24px lt-sm:mt-8px lt-sm:lh-normal"
  91. :class="[
  92. index === activeIndex
  93. ? 'opacity-100 translate-y-0 delay-150 duration-500'
  94. : 'opacity-0 translate-y-20px delay-0 duration-200',
  95. ]"
  96. >
  97. <span>{{ solution.hoverDesc }}</span>
  98. </div>
  99. <div
  100. class="mt-24px flex flex-col gap-8px transition-all lt-sm:mt-48px"
  101. :class="[
  102. index === activeIndex
  103. ? 'opacity-100 translate-y-0 delay-200 duration-500'
  104. : 'opacity-0 translate-y-20px delay-0 duration-200',
  105. ]"
  106. >
  107. <div v-for="item in solution.hoverItems" :key="item.title" class="flex flex-col">
  108. <div class="flex gap-8px items-center font-s-14px lt-sm:font-s-24px lt-sm:gap-12px">
  109. <i class="i-custom-check-one wh-18px lt-sm:wh-32px"></i>
  110. <div
  111. class="flex items-center gap-8px lt-sm:flex-col lt-sm:items-start lt-sm:gap-8px"
  112. >
  113. <span class="text-#091221 pf-sc-semibold">
  114. {{ item.title }}
  115. </span>
  116. <span class="text-#091221/70 pf-sc-regular line-clamp-1">
  117. {{ item.itemDesc }}
  118. </span>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <button
  124. 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 transition-all"
  125. :class="[
  126. index === activeIndex
  127. ? 'opacity-100 translate-y-0 delay-300 duration-500'
  128. : 'opacity-0 translate-y-20px delay-0 duration-200',
  129. ]"
  130. @click="openConsultation"
  131. >
  132. <span class="font-s-16px lt-sm:font-s-26px">立即咨询</span>
  133. <i class="i-custom-arrow-right wh-18px lt-sm:wh-28px"></i>
  134. </button>
  135. <img
  136. :src="solution.hoverImg"
  137. alt=""
  138. class="wh-280px lt-sm:wh-264px absolute bottom--37px lt-sm:bottom--26px right-0 transition-all ease-out"
  139. :class="[
  140. index === activeIndex
  141. ? 'opacity-100 scale-100 delay-100 duration-700'
  142. : 'opacity-0 scale-50 delay-0 duration-300',
  143. ]"
  144. />
  145. </div>
  146. <!-- Normal State Content -->
  147. <div
  148. class="solution-card-normal"
  149. :class="[
  150. index === activeIndex
  151. ? 'opacity-0 pointer-events-none duration-300'
  152. : 'opacity-100 duration-500',
  153. ]"
  154. >
  155. <div
  156. class="wh-40px ml-2px bg-white rounded-10px flex-center transition-all ease-in-out"
  157. :class="[
  158. index === activeIndex
  159. ? 'scale-150 opacity-0 delay-0 duration-300'
  160. : 'scale-100 opacity-100 delay-0 duration-500',
  161. ]"
  162. >
  163. <img :src="solution.img" alt="" class="wh-35px" />
  164. </div>
  165. <div
  166. class="mt-18px font-s-18px text-#091221 pf-sc-semibold transition-all"
  167. :class="[
  168. index === activeIndex
  169. ? 'opacity-0 translate-y-10px delay-0 duration-200'
  170. : 'opacity-100 translate-y-0 delay-100 duration-500',
  171. ]"
  172. >
  173. {{ solution.title }}
  174. </div>
  175. <div
  176. class="mt-8px font-s-14px lh-24px text-#091221/60 pf-sc-regular w-172px transition-all"
  177. :class="[
  178. index === activeIndex
  179. ? 'opacity-0 translate-y-10px delay-0 duration-200'
  180. : 'opacity-100 translate-y-0 delay-150 duration-500',
  181. ]"
  182. >
  183. {{ solution.desc }}
  184. </div>
  185. <i
  186. class="i-custom-circle-right-up wh-48px absolute bottom-24px left-24px transition-all"
  187. :class="[
  188. index === activeIndex
  189. ? 'opacity-0 scale-50 delay-0 duration-200'
  190. : 'opacity-100 scale-100 delay-100 duration-500',
  191. ]"
  192. ></i>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="solution-dots lt-sm:flex hidden">
  197. <div
  198. v-for="(_, index) in solutions"
  199. :key="index"
  200. class="dot"
  201. :class="{ active: index === activeIndex }"
  202. @click="scrollToSolution(index)"
  203. ></div>
  204. </div>
  205. </section>
  206. <section
  207. id="ability"
  208. ref="abilityRef"
  209. class="ability transition-all duration-1000 ease-out"
  210. :class="[isAbilityVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  211. >
  212. <div
  213. class="font-s-36px text-#000000 pf-sc-semibold flex-center lh-60px lt-sm:font-s-48px lt-sm:lh-60px"
  214. >
  215. 一体化智慧解决方案
  216. </div>
  217. <div
  218. class="font-s-16px text-#091221/70 pf-sc-regular lh-30px flex-center mt-4px lt-sm:font-s-24px lt-sm:lh-40px lt-sm:text-center lt-sm:px-60px"
  219. >
  220. 绘家科技提供从软件到硬件的完整解决方案,覆盖物业管理的全场景需求
  221. </div>
  222. <div class="mt-24px flex-center flex-col lt-sm:mt-40px">
  223. <div class="ability-tabs">
  224. <!-- 滑块背景 -->
  225. <div class="ability-tab-indicator" :style="abilityTabIndicatorStyle"></div>
  226. <div
  227. v-for="tab in abilityTabs"
  228. :key="tab.title"
  229. class="ability-tab-item"
  230. :class="[
  231. activeAbilityTab.id === tab.id ? 'text-white' : 'text-#091221 hover:text-#0F67F8',
  232. ]"
  233. @click="handleAbilityTabClick(tab)"
  234. >
  235. {{ tab.title }}
  236. </div>
  237. </div>
  238. <div class="tab-content pt-45px lt-sm:pt-40px lt-sm:w-full">
  239. <Transition name="tab-fade" mode="out-in">
  240. <div :key="activeAbilityTab.id" class="grid grid-cols-3 gap-24px lt-sm:grid-cols-2">
  241. <div
  242. v-for="ability in abilities[activeAbilityTab.id]"
  243. :key="ability.title"
  244. class="ability-card"
  245. >
  246. <i :class="ability.icon" class="wh-48px lt-sm:wh-78px"></i>
  247. <div
  248. class="mt-16px font-s-18px lt-sm:font-s-32px font-semibold text-#091221 pf-sc-semibold"
  249. >
  250. {{ ability.title }}
  251. </div>
  252. <div
  253. class="mt-8px flex-1 font-s-14px lt-sm:font-s-24px lt-sm:mt-16px text-#091221/70 pf-sc-regular"
  254. >
  255. {{ ability.desc }}
  256. </div>
  257. <div class="ability-card-link">
  258. 查看详情
  259. <i
  260. class="i-custom-arrow-right-c color-#0F67F8 wh-18px lt-sm:wh-28px transition-transform group-hover:translate-x-4px"
  261. ></i>
  262. </div>
  263. </div>
  264. </div>
  265. </Transition>
  266. </div>
  267. </div>
  268. </section>
  269. <section
  270. id="cases"
  271. ref="casesRef"
  272. class="cases pt-120px pb-46px transition-all duration-1000 ease-out lt-sm:pt-120px lt-sm:pb-60px lt-sm:px-32px"
  273. :class="[isCasesVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  274. >
  275. <div class="text-center mb-60px lt-sm:mb-60px lt-sm:px-32px">
  276. <div
  277. class="font-s-36px font-semibold text-#000000 pf-sc-semibold mb-4px lh-60px lt-sm:font-s-48px lt-sm:mb-16px"
  278. >
  279. 知识产权和案例
  280. </div>
  281. <div
  282. class="font-s-16px text-#091221/70 pf-sc-regular lh-30px lt-sm:font-s-24px lt-sm:lh-40px"
  283. >
  284. 绘家科技凭借强大的技术实力和丰富的实践经验,为客户提供卓越的智慧社区解决方案
  285. </div>
  286. </div>
  287. <div class="cases-list" ref="casesListRef" @scroll="handleCaseScroll">
  288. <div
  289. v-for="(caseItem, index) in cases"
  290. :key="caseItem.title"
  291. class="cases-card"
  292. :class="{ active: index === activeCaseIndex }"
  293. >
  294. <div class="flex flex-col h-full">
  295. <img
  296. :src="caseItem.img"
  297. class="w-full h-218px rounded-12px lt-sm:h-320px lt-sm:rounded-24px"
  298. alt=""
  299. />
  300. <div
  301. class="font-s-18px font-semibold text-#091221 pf-sc-semibold mt-24px lt-sm:font-s-32px lt-sm:mt-32px"
  302. >
  303. {{ caseItem.title }}
  304. </div>
  305. <div
  306. class="mt-8px font-s-14px lh-24px text-#091221/70 pf-sc-regular lt-sm:font-s-24px lt-sm:lh-36px lt-sm:mt-16px"
  307. >
  308. {{ caseItem.desc }}
  309. </div>
  310. <div class="mt-24px flex flex-col gap-8px lt-sm:mt-32px lt-sm:gap-16px flex-1">
  311. <div
  312. v-for="point in caseItem.points"
  313. :key="point.title"
  314. class="flex items-center gap-8px lt-sm:gap-12px"
  315. >
  316. <i class="i-custom-check-one wh-20px mt-2px lt-sm:wh-32px"></i>
  317. <div
  318. class="font-s-14px font-semibold text-#091221 pf-sc-semibold lt-sm:font-s-24px"
  319. >
  320. {{ point.title }}
  321. </div>
  322. <div class="font-s-14px text-#091221/70 pf-sc-regular lt-sm:font-s-24px">
  323. {{ point.itemDesc }}
  324. </div>
  325. </div>
  326. </div>
  327. <button class="cases-btn">
  328. {{ caseItem.btnText }}
  329. <i class="i-custom-arrow-right-c wh-18px lt-sm:wh-32px lt-sm:text-white"></i>
  330. </button>
  331. </div>
  332. </div>
  333. </div>
  334. <div class="cases-dots lt-sm:flex hidden">
  335. <div
  336. v-for="(_, index) in cases"
  337. :key="index"
  338. class="dot"
  339. :class="{ active: index === activeCaseIndex }"
  340. @click="scrollToCase(index)"
  341. ></div>
  342. </div>
  343. </section>
  344. <section
  345. id="partnership"
  346. ref="partnershipRef"
  347. class="partnership py-60px overflow-hidden transition-all duration-1000 ease-out"
  348. :class="[isPartnershipVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  349. >
  350. <div class="flex-center gap-32px mb-40px">
  351. <div class="h-2px w-320px bg-[linear-gradient(90deg,transparent_0%,#E5E9F5_100%)]"></div>
  352. <div class="text-center font-s-18px lh-21px text-#9CA0A7 pf-sc-regular whitespace-nowrap">
  353. 与合作伙伴携手,深入产业共创价值
  354. </div>
  355. <div class="h-2px w-320px bg-[linear-gradient(90deg,#E5E9F5_0%,transparent_100%)]"></div>
  356. </div>
  357. <div class="relative flex flex-col gap-0px -mt-24px">
  358. <!-- 第一行 -->
  359. <InspiraMarquee class="[--duration:80s] [--gap:24px] mb--31px">
  360. <div v-for="partner in partnersRow1" :key="partner" class="partner-item">
  361. <img :src="partner" alt="" class="wh-full object-contain" />
  362. </div>
  363. </InspiraMarquee>
  364. <!-- 第二行 -->
  365. <InspiraMarquee reverse class="[--duration:80s] [--delay:-20s] [--gap:24px]">
  366. <div v-for="partner in partnersRow2" :key="partner" class="partner-item">
  367. <img :src="partner" alt="" class="wh-full object-contain" />
  368. </div>
  369. </InspiraMarquee>
  370. <!-- 左右渐变遮罩 -->
  371. <div
  372. class="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-[linear-gradient(to_right,#fff,transparent)]"
  373. ></div>
  374. <div
  375. class="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-[linear-gradient(to_left,#fff,transparent)]"
  376. ></div>
  377. </div>
  378. </section>
  379. <section id="history" ref="timelineRef" class="history">
  380. <div
  381. class="flex flex-col items-center transition-all duration-1000"
  382. :class="[isTimelineVisible ? 'translate-y-0 opacity-100' : 'translate-y-40px opacity-0']"
  383. >
  384. <div
  385. class="pf-sc-semibold font-semibold font-s-36px text-#000000 lh-60px text-center mb-4px"
  386. >
  387. 发展历程
  388. </div>
  389. <div class="font-s-16px text-#091221/70 pf-sc-regular text-center lh-30px mb-50px">
  390. 从探索到引领,绘家科技每一步都坚实有力
  391. </div>
  392. <!-- 上部内容区 -->
  393. <div class="w-full h-255px flex py-50px items-center">
  394. <!-- 左侧大年份 -->
  395. <div class="relative pl-127px w-600px shrink-0 h-170px overflow-hidden">
  396. <Transition name="year-flow">
  397. <div
  398. :key="currentYearData?.year"
  399. class="absolute left-127px top-0 h-full flex items-center w-full"
  400. >
  401. <span
  402. class="text-170px font-bold text-#0F67F8 pf-sc-bold select-none leading-none"
  403. style="
  404. -webkit-text-stroke: 1px #2563eb;
  405. text-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
  406. "
  407. >
  408. {{ currentYearData?.year }}
  409. </span>
  410. </div>
  411. </Transition>
  412. </div>
  413. <!-- 右侧事件描述 -->
  414. <div class="flex-1 h-full relative overflow-hidden">
  415. <Transition name="content-flow">
  416. <div
  417. :key="currentYearData?.year + '-' + currentEventIndex"
  418. class="absolute left-0 top-14px w-full flex flex-col pr-114px"
  419. >
  420. <div class="flex justify-between items-center w-full">
  421. <span
  422. class="text-22px font-semibold lh-30.8px text-#091221 pf-sc-semibold flex-1 content-stagger-1"
  423. >
  424. {{ currentEventData?.month }}
  425. </span>
  426. <!-- 右上方小切换 -->
  427. <div
  428. v-if="(currentYearData?.events?.length ?? 0) > 1"
  429. class="flex gap-12px content-stagger-1 relative z-10"
  430. >
  431. <i
  432. class="i-custom-arrow-circle-left wh-32px transition-all"
  433. :class="[
  434. currentEventIndex === 0
  435. ? 'opacity-30 cursor-not-allowed'
  436. : 'cursor-pointer hover:i-custom-arrow-circle-left-active hover:scale-110 active:scale-95',
  437. ]"
  438. @click="prevEvent"
  439. ></i>
  440. <i
  441. class="i-custom-arrow-circle-right wh-32px transition-all"
  442. :class="[
  443. currentEventIndex === (currentYearData?.events?.length ?? 0) - 1
  444. ? 'opacity-30 cursor-not-allowed'
  445. : 'cursor-pointer hover:i-custom-arrow-circle-right-active hover:scale-110 active:scale-95',
  446. ]"
  447. @click="nextEvent"
  448. ></i>
  449. </div>
  450. </div>
  451. <div class="h-2px w-34px bg-#0F67F8 mt-11px content-stagger-2 origin-left"></div>
  452. <div
  453. class="w-full font-s-20px lh-35px text-#091221/70 pf-sc-regular mt-26px content-stagger-3"
  454. >
  455. {{ currentEventData?.content }}
  456. </div>
  457. </div>
  458. </Transition>
  459. </div>
  460. </div>
  461. <!-- 时间轴 -->
  462. <div class="w-full relative pt-47px pb-60px">
  463. <!-- 轨道容器 -->
  464. <div class="relative h-16px w-full bg-white rounded-full px-60px">
  465. <!-- 进度条:从轨道最左侧开始到当前点 -->
  466. <div
  467. 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"
  468. :style="progressStyle"
  469. ></div>
  470. <!-- 内部轨道(用于定位时间点) -->
  471. <div class="relative h-full w-full">
  472. <!-- 时间点列表 -->
  473. <div
  474. v-for="(item, index) in historyYears"
  475. :key="item.year"
  476. class="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 flex flex-col items-center cursor-pointer group z-2"
  477. :style="getTimelineNodePositionStyle(index)"
  478. @click="selectYear(index)"
  479. >
  480. <!-- 圆点 -->
  481. <div
  482. class="rounded-full transition-all duration-300 relative bg-white"
  483. :class="getTimelineDotClasses(index)"
  484. :style="getTimelineDotStyle(index)"
  485. ></div>
  486. <!-- 年份文字 -->
  487. <span
  488. class="absolute top-24px text-16px transition-all duration-300 whitespace-nowrap"
  489. :class="getTimelineYearTextClasses(index)"
  490. >
  491. {{ item.year }}
  492. </span>
  493. </div>
  494. </div>
  495. </div>
  496. </div>
  497. <!-- 底部大切换 -->
  498. <div class="flex gap-24px mt-45px">
  499. <i
  500. class="wh-56px i-custom-button-previous hover:i-custom-button-previous-active flex-center cursor-pointer"
  501. :class="{
  502. 'opacity-30 cursor-not-allowed hover:i-custom-button-previous!':
  503. currentYearIndex === 0,
  504. }"
  505. @click="prevYear"
  506. ></i>
  507. <i
  508. class="wh-56px i-custom-button-next hover:i-custom-button-next-active flex-center cursor-pointer"
  509. :class="{
  510. 'opacity-30 cursor-not-allowed hover:i-custom-button-next!':
  511. currentYearIndex === historyYears.length - 1,
  512. }"
  513. @click="nextYear"
  514. ></i>
  515. </div>
  516. </div>
  517. </section>
  518. <section class="cta py-60px flex-center flex-col">
  519. <div class="pf-sc-semibold font-s-40px lh-56px text-center">开启您的智慧社区转型之旅</div>
  520. <div class="font-s-18px text-#232325 pf-sc-light">
  521. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  522. </div>
  523. <button
  524. 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"
  525. @click="openConsultation"
  526. >
  527. <span class="font-s-16px">立即咨询</span>
  528. <i class="i-custom-arrow-right wh-18px"></i>
  529. </button>
  530. </section>
  531. </div>
  532. </template>
  533. <script setup lang="ts">
  534. import {
  535. abilityTabs,
  536. solutions,
  537. abilities,
  538. cases,
  539. partnersRow1,
  540. partnersRow2,
  541. historyYears,
  542. } from '@/constants/common'
  543. const { openConsultation } = useConsultation()
  544. const activeIndex = ref(0)
  545. const solutionListRef = ref<HTMLElement | null>(null)
  546. const handleSolutionScroll = (e: Event) => {
  547. const el = e.target as HTMLElement
  548. const scrollLeft = el.scrollLeft
  549. const width = el.offsetWidth
  550. // 计算当前处于中间的卡片索引
  551. // 卡片宽度为 85%,加上 gap 16px
  552. const cardWidth = width * 0.85
  553. const gap = 16
  554. const newIndex = Math.round(scrollLeft / (cardWidth + gap))
  555. if (newIndex !== activeIndex.value) {
  556. activeIndex.value = newIndex
  557. }
  558. }
  559. const scrollToSolution = (index: number) => {
  560. if (!solutionListRef.value) return
  561. const width = solutionListRef.value.offsetWidth
  562. const cardWidth = width * 0.85
  563. const gap = 16
  564. solutionListRef.value.scrollTo({
  565. left: index * (cardWidth + gap),
  566. behavior: 'smooth',
  567. })
  568. }
  569. const activeCaseIndex = ref(0)
  570. const casesListRef = ref<HTMLElement | null>(null)
  571. const handleCaseScroll = (e: Event) => {
  572. const el = e.target as HTMLElement
  573. const scrollLeft = el.scrollLeft
  574. const width = el.offsetWidth
  575. const cardWidth = width * 0.9
  576. const gap = 16
  577. const newIndex = Math.round(scrollLeft / (cardWidth + gap))
  578. if (newIndex !== activeCaseIndex.value) {
  579. activeCaseIndex.value = newIndex
  580. }
  581. }
  582. const scrollToCase = (index: number) => {
  583. if (!casesListRef.value) return
  584. const width = casesListRef.value.offsetWidth
  585. const cardWidth = width * 0.9
  586. const gap = 16
  587. casesListRef.value.scrollTo({
  588. left: index * (cardWidth + gap),
  589. behavior: 'smooth',
  590. })
  591. }
  592. const solutionRef = ref<HTMLElement | null>(null)
  593. const abilityRef = ref<HTMLElement | null>(null)
  594. const partnershipRef = ref<HTMLElement | null>(null)
  595. const casesRef = ref<HTMLElement | null>(null)
  596. const timelineRef = ref<HTMLElement | null>(null)
  597. const isSolutionVisible = ref(false)
  598. const isAbilityVisible = ref(false)
  599. const isPartnershipVisible = ref(false)
  600. const isCasesVisible = ref(false)
  601. const isTimelineVisible = ref(false)
  602. // 发展历程状态
  603. const currentYearIndex = ref(historyYears.length - 1)
  604. const currentEventIndex = ref(0)
  605. const currentYearData = computed(() => {
  606. const data = historyYears[currentYearIndex.value]
  607. return data || historyYears[0]
  608. })
  609. const currentEventData = computed(() => {
  610. const events = currentYearData.value?.events || []
  611. return events[currentEventIndex.value] || events[0]
  612. })
  613. const progressStyle = computed(() => {
  614. const totalSteps = Math.max(historyYears.length - 1, 1)
  615. if (currentYearIndex.value === totalSteps) {
  616. return {
  617. width: '100%',
  618. }
  619. }
  620. const percentage = currentYearIndex.value / totalSteps
  621. return {
  622. width: `calc(60px + ${percentage} * (100% - 120px))`,
  623. }
  624. })
  625. const nextYear = () => {
  626. if (currentYearIndex.value < historyYears.length - 1) {
  627. currentYearIndex.value++
  628. currentEventIndex.value = 0
  629. }
  630. }
  631. const prevYear = () => {
  632. if (currentYearIndex.value > 0) {
  633. currentYearIndex.value--
  634. currentEventIndex.value = 0
  635. }
  636. }
  637. const nextEvent = () => {
  638. const events = currentYearData.value?.events || []
  639. if (currentEventIndex.value < events.length - 1) {
  640. currentEventIndex.value++
  641. }
  642. }
  643. const prevEvent = () => {
  644. if (currentEventIndex.value > 0) {
  645. currentEventIndex.value--
  646. }
  647. }
  648. const selectYear = (index: number) => {
  649. currentYearIndex.value = index
  650. currentEventIndex.value = 0
  651. }
  652. const activeAbilityTab = ref<AbilityTab>(abilityTabs[0] as AbilityTab)
  653. const abilityTabIndicatorStyle = computed(() => {
  654. const activeTabIndex = abilityTabs.findIndex((tab) => tab.id === activeAbilityTab.value.id)
  655. return {
  656. transform: `translateX(${activeTabIndex * 100}%)`,
  657. }
  658. })
  659. const handleAbilityTabClick = (tab: AbilityTab) => {
  660. activeAbilityTab.value = tab
  661. }
  662. onMounted(() => {
  663. const revealSections = [
  664. { elRef: solutionRef, visible: isSolutionVisible },
  665. { elRef: abilityRef, visible: isAbilityVisible },
  666. { elRef: partnershipRef, visible: isPartnershipVisible },
  667. { elRef: casesRef, visible: isCasesVisible },
  668. { elRef: timelineRef, visible: isTimelineVisible },
  669. ]
  670. const observer = new IntersectionObserver(
  671. (entries) => {
  672. entries.forEach((entry) => {
  673. if (entry.isIntersecting) {
  674. const matched = revealSections.find((item) => item.elRef.value === entry.target)
  675. if (matched) {
  676. matched.visible.value = true
  677. }
  678. observer.unobserve(entry.target)
  679. }
  680. })
  681. },
  682. { threshold: 0.1 }
  683. )
  684. revealSections.forEach(({ elRef }) => {
  685. if (elRef.value) {
  686. observer.observe(elRef.value)
  687. }
  688. })
  689. })
  690. const getTimelineNodePositionStyle = (index: number) => {
  691. return { left: `${(index / (historyYears.length - 1)) * 100}%` }
  692. }
  693. const getTimelineDotClasses = (index: number) => {
  694. return [
  695. index < currentYearIndex.value
  696. ? 'wh-13px'
  697. : 'wh-16px border-#0F67F8 group-hover:border-[#2563EB] border-1',
  698. index === currentYearIndex.value
  699. ? 'wh-16px scale-150 outline-6px outline-#CEE0FF outline-solid border-none'
  700. : '',
  701. ]
  702. }
  703. const getTimelineDotStyle = (index: number) => {
  704. if (index === currentYearIndex.value) {
  705. return { background: 'linear-gradient(90deg, #779EFF 0%, #0A50FF 100%)' }
  706. }
  707. if (index < currentYearIndex.value) {
  708. return { background: '#FFFFFF' }
  709. }
  710. return {}
  711. }
  712. const getTimelineYearTextClasses = (index: number) => {
  713. return [
  714. index === currentYearIndex.value
  715. ? 'text-#2563EB font-bold pf-sc-bold scale-110'
  716. : 'text-#94A3B8 group-hover:text-[#64748B]',
  717. ]
  718. }
  719. </script>
  720. <style scoped lang="scss">
  721. .landing {
  722. @apply lt-sm:pt-120px;
  723. color: var(--hj-text);
  724. background: var(--hj-bg);
  725. }
  726. .hero {
  727. @apply h-680px relative overflow-hidden;
  728. background-size: cover;
  729. background-position: center;
  730. background-image: url('@/assets/images/banner.png');
  731. .hero-content {
  732. @extend %landing-container;
  733. }
  734. .hero-title {
  735. @apply font-s-48px font-semibold text-#000000 lt-sm:font-s-58px;
  736. }
  737. .hero-subtitle {
  738. @apply font-s-18px text-#091221/70 lt-sm:mt-12px lt-sm:font-s-26px lt-sm:px-25px lt-xs:px-0;
  739. }
  740. .hero-actions {
  741. @apply mt-35px flex items-center gap-16px lt-sm:justify-center lt-sm:absolute lt-sm:bottom-80px lt-sm:left-1/2 lt-sm:-translate-x-1/2;
  742. }
  743. .hero-btn-primary {
  744. @apply w-127px h-56px rounded-8px text-white font-s-18px pf-sc-semibold lt-sm:w-168px lt-sm:h-71px lt-sm:font-s-24px;
  745. }
  746. .hero-btn-outline {
  747. @apply w-127px h-56px bg-white border-#0F67F8 border-1 rounded-8px hover:opacity-80 font-s-18px font-semibold text-#0F67F8 lt-sm:w-168px lt-sm:h-71px lt-sm:font-s-24px;
  748. }
  749. .metric {
  750. @apply flex items-start flex-col lt-sm:items-center;
  751. .metric-value {
  752. @apply font-s-32px font-semibold text-#0F67F8 lt-sm:font-s-52px;
  753. }
  754. .metric-label {
  755. @apply font-s-14px text-#384146 lt-sm:font-s-24px;
  756. }
  757. }
  758. @screen lt-sm {
  759. @apply w-full h-auto;
  760. aspect-ratio: 750/880;
  761. background-image: url('@/assets/images/banner-mobile.png');
  762. background-size: 100% 100%;
  763. background-repeat: no-repeat;
  764. background-position: center;
  765. }
  766. }
  767. .solution {
  768. @extend %landing-container;
  769. @apply lt-sm:px-0;
  770. }
  771. .solution-list {
  772. @apply flex h-365px w-full gap-24px;
  773. @screen lt-sm {
  774. @apply h-auto gap-16px overflow-x-auto overflow-y-hidden px-24px;
  775. scroll-snap-type: x mandatory;
  776. scrollbar-width: none; /* Firefox */
  777. &::-webkit-scrollbar {
  778. display: none; /* Safari and Chrome */
  779. }
  780. }
  781. }
  782. .solution-card {
  783. @apply lt-sm:flex-[0_0_90%] lt-sm:min-h-750px lt-sm:w-630px;
  784. position: relative;
  785. display: flex;
  786. height: 100%;
  787. cursor: pointer;
  788. overflow: hidden;
  789. border-radius: 24px;
  790. will-change: transform, opacity;
  791. transition:
  792. transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1),
  793. opacity 600ms ease,
  794. flex 600ms ease-in-out,
  795. background-color 600ms ease-in-out;
  796. @media (min-width: 768px) {
  797. &.active {
  798. flex: 1 1 0%;
  799. }
  800. &:not(.active) {
  801. flex: 0 0 220px;
  802. }
  803. }
  804. @screen lt-sm {
  805. scroll-snap-align: center;
  806. &:not(.active) {
  807. transform: scale(0.96);
  808. opacity: 0.5;
  809. }
  810. &.active {
  811. transform: scale(1);
  812. opacity: 1;
  813. }
  814. &:first-child {
  815. margin-left: 36px;
  816. }
  817. &:last-child {
  818. margin-right: 36px;
  819. }
  820. }
  821. }
  822. .solution-card-hover {
  823. @apply h-full w-full pt-40px px-48px absolute left-0 top-0 transition-all ease-in-out;
  824. @apply lt-sm:relative lt-sm:pt-40px lt-sm:px-36px lt-sm:pb-32px lt-sm:opacity-100 lt-sm:translate-y-0 lt-sm:pointer-events-auto;
  825. &.mobile-show {
  826. @apply lt-sm:opacity-100 lt-sm:translate-y-0 lt-sm:pointer-events-auto;
  827. }
  828. button {
  829. @apply lt-sm:w-270px lt-sm:h-95px lt-sm:rounded-16px lt-sm:mt-102px lt-sm:px-;
  830. }
  831. }
  832. .solution-card-normal {
  833. @apply h-full w-220px pt-40px px-24px absolute left-0 top-0 transition-all ease-in-out;
  834. @screen lt-sm {
  835. @apply hidden;
  836. }
  837. }
  838. .solution-dots {
  839. @apply lt-sm:mt-40px flex-center lt-sm:gap-16px;
  840. .dot {
  841. @apply lt-sm:w-60px lt-sm:h-10px bg-#E5E9F5 rounded-full transition-all cursor-pointer;
  842. &.active {
  843. @apply bg-#0F67F8;
  844. }
  845. }
  846. }
  847. .ability {
  848. @apply py-120px lt-sm:py-120px lt-sm:px-32px;
  849. @extend %landing-container;
  850. background-size: 100% 100%;
  851. background-image: url('@/assets/images/bg-ability.png');
  852. }
  853. .ability-tabs {
  854. @apply relative flex items-center rounded-14px border border-#ECEFF6 bg-#F6F8FD p-6px;
  855. @apply lt-sm:rounded-16px lt-sm:p-8px;
  856. @screen lt-sm {
  857. width: calc(100% - 40px);
  858. }
  859. }
  860. .ability-tab-indicator {
  861. @apply absolute w-136px h-[calc(100%-12px)] transition-all duration-300 ease-out rounded-8px bg-#0F67F8;
  862. @apply lt-sm:w-[calc((100%-16px)/3)] lt-sm:h-[calc(100%-16px)] lt-sm:rounded-12px;
  863. }
  864. .ability-tab-item {
  865. @apply relative z-1 cursor-pointer py-14px px-20px text-center font-s-16px transition-colors duration-300 pf-sc-regular;
  866. @apply lt-sm:flex-1 lt-sm:px-0 lt-sm:py-20px lt-sm:font-s-28px;
  867. }
  868. .ability-card {
  869. @apply 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)];
  870. @apply lt-sm:p-24px lt-sm:rounded-24px;
  871. }
  872. .ability-card-link {
  873. @apply mt-24px flex items-center gap-8px font-s-16px pf-sc-regular text-#0F67F8 transition-colors hover:text-#0A50FF cursor-pointer;
  874. @apply lt-sm:mt-48px lt-sm:font-s-28px;
  875. }
  876. .tab-content {
  877. @apply lt-sm:w-full;
  878. }
  879. .cases {
  880. @apply lt-sm:px-0px;
  881. @extend %landing-container;
  882. }
  883. .cases-list {
  884. @apply flex gap-24px;
  885. @screen lt-sm {
  886. @apply gap-36px overflow-x-auto overflow-y-hidden px-0 pb-10px;
  887. scroll-snap-type: x mandatory;
  888. scrollbar-width: none;
  889. &::-webkit-scrollbar {
  890. display: none;
  891. }
  892. }
  893. }
  894. .cases-card {
  895. @apply group flex-1 overflow-hidden rounded-16px bg-#F6F8FD p-32px transition-all duration-300;
  896. @screen lt-sm {
  897. @apply flex-none w-[calc(100vw-84px)] min-w-[calc(100vw-84px)] p-32px rounded-16px;
  898. scroll-snap-align: center;
  899. &:first-child {
  900. margin-left: 42px;
  901. }
  902. &:last-child {
  903. margin-right: 42px;
  904. }
  905. }
  906. }
  907. .cases-btn {
  908. @apply 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;
  909. @screen lt-sm {
  910. @apply mt-48px h-96px rounded-8px px-32px font-s-28px bg-#0F67F8 text-white;
  911. }
  912. }
  913. .cases-dots {
  914. @apply lt-sm:mt-40px lt-sm:flex-center lt-sm:gap-16px;
  915. .dot {
  916. @apply lt-sm:w-60px lt-sm:h-10px bg-#E5E9F5 rounded-full transition-all cursor-pointer;
  917. &.active {
  918. @apply bg-#0F67F8;
  919. }
  920. }
  921. }
  922. .partnership {
  923. @extend %landing-container;
  924. @media screen and (min-width: 1920px) {
  925. padding-left: 220px;
  926. padding-right: 220px;
  927. }
  928. }
  929. .partner-item {
  930. @apply flex-center h-80px w-200px bg-white rounded-8px shadow-[0_2px_8px_2px_rgba(0,0,0,0.06)] px-24px;
  931. }
  932. .tab-fade-enter-active {
  933. transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  934. }
  935. .tab-fade-leave-active {
  936. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  937. }
  938. .tab-fade-enter-from {
  939. opacity: 0;
  940. transform: translateX(30px);
  941. }
  942. .tab-fade-leave-to {
  943. opacity: 0;
  944. transform: translateX(-30px);
  945. }
  946. /* 卡片级联动画 */
  947. .grid > div {
  948. animation: card-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  949. }
  950. .grid > div:nth-child(1) {
  951. animation-delay: 0.05s;
  952. }
  953. .grid > div:nth-child(2) {
  954. animation-delay: 0.1s;
  955. }
  956. .grid > div:nth-child(3) {
  957. animation-delay: 0.15s;
  958. }
  959. .grid > div:nth-child(4) {
  960. animation-delay: 0.2s;
  961. }
  962. .grid > div:nth-child(5) {
  963. animation-delay: 0.25s;
  964. }
  965. .grid > div:nth-child(6) {
  966. animation-delay: 0.3s;
  967. }
  968. .grid > div:nth-child(7) {
  969. animation-delay: 0.35s;
  970. }
  971. .grid > div:nth-child(8) {
  972. animation-delay: 0.4s;
  973. }
  974. @keyframes card-slide-up {
  975. from {
  976. opacity: 0;
  977. transform: translateY(20px);
  978. }
  979. to {
  980. opacity: 1;
  981. transform: translateY(0);
  982. }
  983. }
  984. .btn-primary {
  985. @apply bg-gradient-to-r from-[#779EFF] to-[#0A50FF];
  986. border: none;
  987. outline: none;
  988. //hover 背景颜色
  989. &:hover {
  990. opacity: 0.8;
  991. }
  992. }
  993. .history {
  994. @apply overflow-hidden relative py-60px;
  995. @extend %landing-container;
  996. background-size: cover;
  997. background-position: center;
  998. background-image: url('@/assets/images/history-bg.png');
  999. }
  1000. /* 发展历程动画 - 新版流式 */
  1001. .year-flow-enter-active,
  1002. .year-flow-leave-active {
  1003. transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  1004. }
  1005. .year-flow-enter-from {
  1006. opacity: 0;
  1007. transform: translateY(100%) scale(0.9);
  1008. }
  1009. .year-flow-leave-to {
  1010. opacity: 0;
  1011. transform: translateY(-100%) scale(0.9);
  1012. }
  1013. .content-flow-enter-active,
  1014. .content-flow-leave-active {
  1015. transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  1016. }
  1017. .content-flow-enter-from {
  1018. opacity: 0;
  1019. transform: translateX(30px);
  1020. }
  1021. .content-flow-leave-to {
  1022. opacity: 0;
  1023. transform: translateX(-30px);
  1024. }
  1025. /* 内容交错动画 */
  1026. .content-flow-enter-active .content-stagger-1 {
  1027. transition: all 0.4s ease-out 0.1s;
  1028. }
  1029. .content-flow-enter-active .content-stagger-2 {
  1030. transition: all 0.4s ease-out 0.2s;
  1031. }
  1032. .content-flow-enter-active .content-stagger-3 {
  1033. transition: all 0.4s ease-out 0.3s;
  1034. }
  1035. .content-flow-enter-from .content-stagger-1,
  1036. .content-flow-enter-from .content-stagger-2,
  1037. .content-flow-enter-from .content-stagger-3 {
  1038. opacity: 0;
  1039. transform: translateX(15px);
  1040. }
  1041. .content-flow-enter-from .content-stagger-2 {
  1042. transform: scaleX(0);
  1043. }
  1044. /* 时间轴圆点呼吸效果 */
  1045. .cta {
  1046. @apply w-full h-276px;
  1047. background-size: cover;
  1048. background-position: center;
  1049. background-image: url('@/assets/images/bg-3.png');
  1050. }
  1051. </style>