12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244 |
- <template>
- <div>
- <div class="w-full h-[88px] md:h-[0]"></div>
- <!-- 轮播图 -->
- <section class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4">
- <Swiper
- :modules="[Pagination, Autoplay, EffectCreative]"
- :slides-per-view="1"
- :space-between="30"
- :loop="true"
- :pagination="{ el: '.swiper-pagination-1', clickable: true }"
- :autoplay="{
- delay: 5000,
- disableOnInteraction: false,
- pauseOnMouseEnter: true,
- waitForTransition: true,
- }"
- effect="creative"
- :creativeEffect="{
- prev: {
- shadow: true,
- translate: ['-120%', 0, -500],
- rotate: [0, 0, -90],
- opacity: 0,
- },
- next: {
- shadow: true,
- translate: ['120%', 0, -500],
- rotate: [0, 0, 90],
- opacity: 0,
- },
- }"
- :speed="1000"
- :grabCursor="true"
- :parallax="true"
- class="h-[320px] sm:h-[320px] md:h-[768px] lg:h-[900px] swiper-container-1"
- >
- <SwiperSlide v-if="!isMobile">
- <div class="max-w-screen-2xl mx-auto h-full relative">
- <video
- :src="homeA3Webp"
- autoplay
- muted
- loop
- class="w-full h-full object-cover"
- ></video>
- <div
- class="w-full h-full flex-col justify-center hidden md:flex absolute top-0 left-0 z-10"
- >
- <div class="justify-center">
- <span class="text-white text-6xl font-normal leading-[78px]">{{
- t("home.carousel.three.title")
- }}</span>
- <span class="text-white text-6xl font-normal leading-[78px]">{{
- t("home.carousel.three.description")
- }}</span>
- <br />
- <span class="text-white text-6xl font-normal leading-[78px]">{{
- t("home.carousel.three.description2")
- }}</span
- ><br />
- <span
- class="text-cyan-400 text-6xl font-normal leading-[78px]"
- >{{ t("home.carousel.three.description3") }}</span
- >
- </div>
- <div class="flex flex-col gap-2 mt-4">
- <div
- class="flex items-center gap-2 text-stone-50 text-xl font-normal"
- >
- <div class="w-2 h-2 bg-white rounded-full"></div>
- {{ t("home.carousel.three.description4") }}
- </div>
- <div
- class="flex items-center gap-2 text-stone-50 text-xl font-normal"
- >
- <div class="w-2 h-2 bg-white rounded-full"></div>
- {{ t("home.carousel.three.description5") }}
- </div>
- </div>
- <div
- class="w-36 h-14 mt-12 flex items-center justify-center bg-[#35F1FF] rounded-lg hover:bg-[#35F1FF]/80 transition-colors duration-300"
- >
- <nuxt-link
- :to="`${homepagePath}/about`"
- class="w-full h-full !flex items-center justify-center text-zinc-900"
- >
- {{ t("products.view_details") }}
- </nuxt-link>
- </div>
- </div>
- </div>
- </SwiperSlide>
- <SwiperSlide>
- <div
- class="max-w-screen-2xl mx-auto h-full relative"
- :style="{
- backgroundImage: `url(${homeA1Webp})`,
- backgroundSize: 'cover',
- backgroundPosition: 'center',
- backgroundRepeat: 'no-repeat',
- }"
- >
- <div
- class="w-full h-full flex-col justify-center flex gap-2 select-none relative z-10"
- >
- <div
- class="rounded border border-white w-12 h-8 bg-white/10 backdrop-blur-md leading-none justify-center flex items-center text-white text-sm font-normal"
- >
- SSD
- </div>
- <div class="justify-center flex flex-col gap-2">
- <span
- class="text-white md:text-6xl text-1xl sm:text-2xl font-normal"
- >{{ t("home.carousel.one.title") }}</span
- >
- <span
- class="text-white md:text-6xl text-1xl sm:text-2xl font-normal"
- >{{ t("home.carousel.one.description") }}</span
- >
- <span
- class="text-white md:text-6xl text-1xl sm:text-2xl font-normal"
- >{{ t("home.carousel.one.description2") }}</span
- >
- <span
- class="text-cyan-400 md:text-6xl text-1xl sm:text-2xl font-normal"
- >{{ t("home.carousel.one.description3") }}</span
- >
- </div>
- <div class="md:flex hidden flex-col gap-2 mt-4">
- <div
- class="flex items-center gap-2 text-stone-50 text-xl font-normal"
- >
- <div class="w-2 h-2 bg-white rounded-full"></div>
- {{ t("home.carousel.one.description4") }}
- </div>
- <div
- class="flex items-center gap-2 text-stone-50 text-xl font-normal"
- >
- <div class="w-2 h-2 bg-white rounded-full"></div>
- {{ t("home.carousel.one.description5") }}
- </div>
- </div>
- <div
- class="md:w-36 w-28 md:h-14 h-10 md:mt-12 mt-2 flex items-center justify-center bg-[#35F1FF] rounded-lg hover:bg-[#35F1FF]/80 transition-colors duration-300"
- >
- <nuxt-link
- :to="`${homepagePath}/products/HE80-2TNLHS`"
- class="w-full h-full !flex items-center justify-center text-zinc-900"
- >
- {{ t("products.view_details") }}
- </nuxt-link>
- </div>
- </div>
- </div>
- </SwiperSlide>
-
- <div class="max-w-screen-2xl mx-auto relative">
- <div
- class="swiper-pagination swiper-pagination-1 text-left bottom-1 top-0"
- ></div>
- </div>
- </Swiper>
- </section>
-
- <!-- 按分类栏目展示 -->
- <section class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4">
- <div class="max-w-screen-2xl mx-auto relative">
- <div
- class="justify-center text-cyan-400 text-base font-normal leading-tight mb-4"
- >
- {{ t("home.useCategoryTitle") }}
- </div>
- <div
- class="justify-center text-white font-normal mb-8 md:mb-16 text-xl sm:text-2xl md:text-4xl lg:text-6xl"
- >
- {{ t("home.useCategoryDescription") }}
- </div>
- </div>
- <div class="max-w-screen-2xl mx-auto relative">
- <!-- 企业产品 -->
- <div
- class="flex w-full relative mb-10 xl:mb-40 gap-10 flex-col xl:flex-row"
- >
- <div
- class="select-none relative w-full xl:w-[65%] h-[280px] md:h-[320px] xl:h-[520px] animate-gradient-bg [background:linear-gradient(180deg,#444B55_0%,#98A3B4_95%)] from-zinc-900 to-zinc-800"
- >
- <img
- src="@/assets/images/business.webp"
- alt="business"
- class="max-h-full pl-0 md:pl-4 pt-0 md:pt-4 relative z-10"
- />
- <span
- class="text-transparent bg-clip-text bg-gradient-to-r from-[rgba(255,255,255,0.05)] to-[rgba(255,255,255,0.08)] absolute hidden xl:block z-0 top-[35%] left-[62%] translate-y-[-50%] translate-x-[-50%] text-[170px] font-bold select-none"
- >Business</span
- >
-
- <div
- class="w-full absolute xl:hidden top-0 left-0 right-0 bottom-0 z-10 flex flex-col justify-center items-end p-4 md:p-8"
- >
- <div
- class="text-white text-4xl md:text-7xl font-bold mb-2 select-none"
- >
- {{ t("home.business.title") }}
- </div>
- <div class="justify-center text-white text-xl font-normal mb-8">
- {{ t("home.business.description") }}
- </div>
- <nuxt-link
- :to="`${homepagePath}/products?audiences=1`"
- class="h-14 px-8 py-3.5 bg-white/10 hover:bg-white/15 rounded-[10px] outline outline-1 outline-white/20 backdrop-blur-md inline-flex flex-col justify-start items-start gap-3.5"
- >
- <div class="inline-flex justify-start items-center gap-2.5">
- {{ t("home.business.view_details") }}
- <i class="icon-arrow-right text-xs ml-2"></i>
- </div>
- </nuxt-link>
- </div>
- </div>
- <div class="relative hidden xl:flex flex-1 flex-col gap-10">
- <div class="w-full">
- <div class="text-white text-6xl mb-4 mt-4 select-none">
- {{ t("home.business.title") }}
- </div>
- <div class="justify-center text-white text-xl font-normal mb-8">
- {{ t("home.business.description") }}
- </div>
- <nuxt-link
- :to="`${homepagePath}/products?audiences=1`"
- class="h-14 px-8 py-3.5 bg-white/10 hover:bg-white/15 rounded-[10px] outline outline-1 outline-white/20 backdrop-blur-md inline-flex flex-col justify-start items-start gap-3.5"
- >
- <div class="inline-flex justify-start items-center gap-2.5">
- {{ t("home.business.view_details") }}
- <i class="icon-arrow-right text-xs ml-2"></i>
- </div>
- </nuxt-link>
- </div>
- </div>
-
- <div
- class="bg-zinc-900/60 backdrop-blur-[120px] right-0 bottom-[-30%] static xl:absolute"
- >
- <div class="w-full h-full grid grid-cols-2">
- <nuxt-link
- v-for="category in categoryList"
- :key="category.id"
- class="flex flex-col gap-4 items-center p-4 md:p-12 hover:bg-zinc-900/50 hover:scale-95 transition-all duration-300"
- v-show="category.audiences === 1"
- :to="`${category.link}`"
- >
- <img
- class="w-[200px] h-[200px] object-contain"
- :src="category.image"
- />
- <div
- class="text-center flex justify-center text-white text-base font-bold"
- >
- {{ category.title }}
- </div>
- <div
- class="text-center text-white/50 text-sm max-w-[280px] line-clamp-2"
- >
- {{ category.description }}
- </div>
- </nuxt-link>
- </div>
- </div>
- </div>
-
- <!-- 个人产品 -->
- <div
- class="flex w-full gap-8 relative mb-0 xl:mb-60 flex-col xl:flex-row"
- >
- <div
- class="flex-1 hidden xl:flex flex-col gap-10 relative top-[-80px]"
- >
- <div class="w-full">
- <div
- class="justify-center text-white text-6xl whitespace-nowrap mb-4 mt-20 select-none"
- >
- {{ t("home.personal.title") }}
- </div>
- <div class="justify-center text-white text-xl font-normal mb-8">
- {{ t("home.personal.description") }}
- </div>
- <nuxt-link
- :to="`${homepagePath}/products?audiences=0`"
- class="h-14 px-8 py-3.5 bg-white/10 hover:bg-white/15 rounded-[10px] outline outline-1 outline-white/20 backdrop-blur-md inline-flex flex-col justify-start items-start gap-3.5"
- >
- <div class="inline-flex justify-start items-center gap-2.5">
- {{ t("home.personal.view_details") }}
- <i class="icon-arrow-right text-xs ml-2"></i>
- </div>
- </nuxt-link>
- </div>
- </div>
-
- <div
- class="w-full xl:w-[75%] h-[280px] md:h-[320px] xl:h-[480px] select-none relative z-0 flex justify-end items-end animate-gradient-bg [background:linear-gradient(180deg,#0086f4_0%,#88d5fa_80%)]"
- >
- <img
- src="@/assets/images/personal.webp"
- alt="personal"
- class="pt-0 md:pt-20 max-h-full relative z-10"
- />
- <span
- class="absolute text-transparent bg-clip-text bg-gradient-to-r from-[rgba(255,255,255,0.08)] to-[rgba(255,255,255,0.05)] hidden xl:block z-0 top-[25%] left-[35%] translate-y-[-50%] translate-x-[-50%] text-[160px] font-bold select-none"
- >Personal</span
- >
-
- <div
- class="flex xl:hidden flex-col gap-10 absolute top-0 left-0 right-0 bottom-0 z-10 justify-center p-4 md:p-8"
- >
- <div class="w-full">
- <div
- class="justify-center text-white text-4xl md:text-7xl font-bold mb-2 select-none"
- >
- {{ t("home.personal.title") }}
- </div>
- <div class="justify-center text-white text-xl font-normal mb-8">
- {{ t("home.personal.description") }}
- </div>
- <nuxt-link
- :to="`${homepagePath}/products?audiences=0`"
- class="h-14 px-8 py-3.5 bg-white/10 hover:bg-white/15 rounded-[10px] outline outline-1 outline-white/20 backdrop-blur-md inline-flex flex-col justify-start items-start gap-3.5"
- >
- <div class="inline-flex justify-start items-center gap-2.5">
- {{ t("home.personal.view_details") }}
- <i class="icon-arrow-right text-xs ml-2"></i>
- </div>
- </nuxt-link>
- </div>
- </div>
- </div>
-
- <div
- class="bg-zinc-900/60 backdrop-blur-[120px] static left-0 bottom-[-32%] xl:absolute z-2"
- >
- <div class="w-full h-full grid grid-cols-2 lg:grid-cols-3">
- <nuxt-link
- v-for="category in categoryList"
- :key="category.id"
- class="flex flex-col gap-4 items-center py-4 px-4 md:py-12 md:px-6 hover:bg-zinc-900/50 hover:scale-95 transition-all duration-300"
- v-show="category.audiences === 0"
- :to="`${category.link}`"
- >
- <img
- class="w-[200px] h-[200px] object-contain"
- :src="category.image"
- />
- <div
- class="text-center flex justify-center text-white text-base font-bold"
- >
- {{ category.title }}
- </div>
- <div
- class="text-center text-white/50 text-sm max-w-[280px] line-clamp-2"
- >
- {{ category.description }}
- </div>
- </nuxt-link>
- </div>
- </div>
- </div>
- </div>
- </section>
-
- <!-- 按用途产品展示 -->
- <section
- v-if="false"
- class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4"
- >
- <div class="max-w-screen-2xl mx-auto relative">
- <div
- class="justify-center text-cyan-400 text-base font-normal leading-tight mb-4"
- >
- {{ t("products.usage") }}
- </div>
- <div
- class="justify-center text-white font-normal mb-8 md:mb-16 text-xl sm:text-2xl md:text-4xl lg:text-6xl"
- >
- {{ t("products.usage_title") }}
- </div>
- </div>
- <div class="max-w-screen-2xl mx-auto">
- <div class="w-full mb-8">
- <div class="flex flex-wrap items-center gap-2">
- <div
- v-for="(usage, index) in typedUsageList"
- :key="usage.id"
- class="cursor-pointer select-none px-4 sm:px-7 py-2 sm:py-3 rounded-full border border-zinc-700 text-white transition-all duration-300 relative group"
- :class="{
- 'bg-cyan-400 border-zinc-900 pointer-events-none text-zinc-900':
- activeIndex === index,
- 'hover:border-zinc-600': activeIndex !== index,
- }"
- @click="handleUsageClick(usage.id)"
- >
- <div
- class="usage-name text-center text-xs sm:text-sm font-normal leading-tight md:text-base transition-colors duration-300 relative z-10"
- >
- {{ usage.name }}
- <!-- 用途名称 -->
- </div>
- <div
- class="absolute inset-0 rounded-full bg-cyan-400/20 scale-0 transition-transform duration-300 group-hover:scale-100"
- ></div>
- </div>
- <div class="flex items-center justify-center gap-4 ml-auto">
- <div
- class="swiper-button-prev-2 bg-zinc-700 w-8 h-8 sm:w-10 sm:h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
- >
- <i
- class="icon-arrow-left text-zinc-300 text-xs sm:text-sm font-normal"
- ></i>
- </div>
- <div
- class="swiper-button-next-2 bg-zinc-700 w-8 h-8 sm:w-10 sm:h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
- >
- <i
- class="icon-arrow-right text-zinc-300 text-xs sm:text-sm font-normal"
- ></i>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="max-w-screen-2xl mx-auto">
- <div
- class="w-full h-[420px] sm:h-[300px] md:h-[350px] lg:h-[360px] xl:h-[380px] 2xl:h-[460px] relative"
- >
- <TransitionGroup name="slide-fade" tag="div" class="relative h-full">
- <div :key="activeUsageId" class="w-full h-full">
- <Swiper
- :modules="[Navigation]"
- :spaceBetween="30"
- :slidesPerView="4"
- :breakpoints="{
- 320: { slidesPerView: 1, spaceBetween: 10 },
- 448: { slidesPerView: 2, spaceBetween: 10 },
- 640: { slidesPerView: 3, spaceBetween: 20 },
- 1024: { slidesPerView: 4, spaceBetween: 20 },
- 1280: { slidesPerView: 4, spaceBetween: 30 },
- 1536: { slidesPerView: 4, spaceBetween: 30 },
- }"
- :navigation="{
- prevEl: '.swiper-button-prev-2',
- nextEl: '.swiper-button-next-2',
- }"
- class="h-full"
- >
- <SwiperSlide
- v-for="product in activeProducts"
- :key="product.id"
- class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4"
- >
- <div class="w-full h-full p-2">
- <nuxt-link :to="product.link" class="block w-full h-full">
- <div
- class="w-full h-full bg-zinc-900 rounded-2xl p-4 flex flex-col items-center justify-start relative overflow-hidden group hover:bg-zinc-800 transition-all duration-300 hover:shadow-lg hover:shadow-cyan-400/10"
- >
- <!-- 图片加载占位 -->
- <div
- v-if="!isImageLoaded[product.id]"
- class="absolute inset-0 bg-gradient-to-br from-zinc-800 via-zinc-700 to-zinc-800 animate-gradient"
- >
- <div
- class="absolute inset-0 flex items-center justify-center"
- >
- <div
- class="w-8 h-8 border-4 border-cyan-400/20 border-t-cyan-400 rounded-full animate-spin"
- ></div>
- </div>
- </div>
- <!-- 图片容器 -->
- <div
- class="w-full aspect-square relative transition-all duration-300 overflow-hidden rounded-lg"
- :class="{ 'opacity-0': !isImageLoaded[product.id] }"
- >
- <img
- :src="product.image"
- :alt="product.title"
- class="w-full h-full object-cover transition-all duration-500 group-hover:scale-110"
- @load="handleImageLoad(product.id)"
- @error="handleImageError(product.id)"
- loading="lazy"
- />
- <div
- class="absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"
- ></div>
- <!-- 添加查看详情按钮 -->
- <div
- class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300 transform translate-y-4 group-hover:translate-y-0"
- >
- <div
- class="px-4 py-2 bg-cyan-400/20 backdrop-blur-sm rounded-full text-white text-sm font-medium border border-cyan-400/30 transform transition-transform duration-300 group-hover:scale-105"
- >
- {{ t("products.view_details") }}
- </div>
- </div>
- </div>
- <!-- 文字内容 -->
- <div
- class="w-full mt-4 min-h-[80px] transition-all duration-300 transform"
- :class="{
- 'opacity-0 translate-y-4':
- !isImageLoaded[product.id],
- 'opacity-100 translate-y-0':
- isImageLoaded[product.id],
- }"
- >
- <div
- class="text-center text-white text-base font-bold leading-tight mb-2 line-clamp-2 group-hover:text-cyan-400 transition-colors duration-300"
- >
- {{ product.title }}
- </div>
- <div
- class="text-center text-zinc-400 text-sm font-normal leading-tight line-clamp-2 group-hover:text-zinc-300 transition-colors duration-300"
- >
- {{ product.description }}
- </div>
- </div>
- </div>
- </nuxt-link>
- </div>
- </SwiperSlide>
- </Swiper>
- </div>
- </TransitionGroup>
- </div>
- </div>
- </section>
-
- <!-- 核心展示 -->
- <section class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4">
- <div
- class="max-w-screen-2xl mx-auto grid grid-cols-1 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-2 gap-4"
- >
- <div class="inline-flex justify-start items-center gap-5">
- <div
- class="w-12 h-12 md:w-16 md:h-16 relative bg-gradient-to-b from-neutral-600 to-slate-400 rounded-xl border-b-[1.50px] border-neutral-700 overflow-hidden"
- >
- <div class="w-full h-full flex items-center justify-center">
- <i class="icon-h1 text-white text-5xl"></i>
- </div>
- </div>
- <div class="inline-flex flex-col justify-center items-start flex-1">
- <div
- class="justify-start text-white font-medium text-1xl md:text-lg"
- >
- {{ t("products.support") }}
- </div>
- <div
- class="justify-start text-zinc-300 text-xs font-normal md:text-sm"
- >
- {{ t("products.support_description") }}
- </div>
- </div>
- </div>
- <div class="inline-flex justify-start items-center gap-5">
- <div
- class="w-12 h-12 md:w-16 md:h-16 relative bg-gradient-to-b from-neutral-600 to-slate-400 rounded-xl border-b-[1.50px] border-neutral-700 overflow-hidden"
- >
- <div class="w-full h-full flex items-center justify-center">
- <i class="icon-h2 text-white text-5xl"></i>
- </div>
- </div>
- <div class="inline-flex flex-col justify-center items-start flex-1">
- <div
- class="justify-start text-white font-medium text-1xl md:text-lg"
- >
- {{ t("products.development") }}
- </div>
- <div
- class="justify-start text-zinc-300 text-xs font-normal md:text-sm"
- >
- {{ t("products.development_description") }}
- </div>
- </div>
- </div>
- <div class="inline-flex justify-start items-center gap-5">
- <div
- class="w-12 h-12 md:w-16 md:h-16 relative bg-gradient-to-b from-neutral-600 to-slate-400 rounded-xl border-b-[1.50px] border-neutral-700 overflow-hidden"
- >
- <div class="w-full h-full flex items-center justify-center">
- <i class="icon-h3 text-white text-5xl"></i>
- </div>
- </div>
- <div class="inline-flex flex-col justify-center items-start flex-1">
- <div
- class="justify-start text-white font-medium text-1xl md:text-lg"
- >
- {{ t("products.develop") }}
- </div>
- <div
- class="justify-start text-zinc-300 text-xs font-normal md:text-sm"
- >
- {{ t("products.develop_description") }}
- </div>
- </div>
- </div>
- </div>
- </section>
-
- <!-- 关于我们 -->
- <section class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4">
- <div class="max-w-screen-2xl mx-auto relative">
- <div
- class="justify-center text-cyan-400 text-base font-normal leading-tight mb-4"
- >
- {{ t("products.strong_point") }}
- </div>
- <div
- class="justify-center text-white font-normal mb-8 md:mb-16 text-xl sm:text-2xl md:text-4xl lg:text-6xl"
- >
- {{ t("products.strong_point_title") }}
- </div>
- <div
- class="absolute right-0 top-1/2 -translate-y-1/2 z-10 lg:block hidden"
- >
- <div class="flex items-center justify-center gap-4">
- <div
- class="swiper-button-prev-3 bg-zinc-700 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
- >
- <i class="icon-arrow-left text-zinc-300 text-sm font-normal"></i>
- </div>
- <div
- class="swiper-button-next-3 bg-zinc-700 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
- >
- <i class="icon-arrow-right text-zinc-300 text-sm font-normal"></i>
- </div>
- </div>
- </div>
- </div>
- <div class="max-w-screen-2xl mx-auto">
- <div class="w-full relative max-w-full">
- <Swiper
- :modules="[Navigation, Pagination]"
- slides-per-view="auto"
- :space-between="30"
- :pagination="{ el: '.swiper-pagination-3', clickable: true }"
- :navigation="{
- prevEl: '.swiper-button-prev-3',
- nextEl: '.swiper-button-next-3',
- }"
- class="h-auto sm:h-[360px] md:h-[480px] lg:h-[720px] max-w-full"
- >
- <SwiperSlide class="!max-w-screen-2xl !w-full">
- <div
- class="w-full h-full flex items-center px-0 md:px-20"
- :style="{
- backgroundImage: `url(${homeC1Webp})`,
- backgroundSize: 'cover',
- backgroundPosition: 'center',
- backgroundRepeat: 'no-repeat',
- }"
- >
- <div
- class="w-[100%] md:w-[60%] h-[100%] md:h-auto bg-white/5 rounded-0 md:rounded-2xl backdrop-blur-[50px] px-4 py-8 md:py-12 md:px-8 flex flex-col gap-8 border border-white/10"
- >
- <div
- class="opacity-90 justify-start text-white text-2xl font-normal md:text-4xl"
- >
- {{ t("about.companyInfo.name") }}
- </div>
- <div
- class="opacity-70 justify-start text-white text-base md:text-lg font-normal leading-relaxed whitespace-pre-wrap"
- >
- {{ t("about.companyInfo.description") }}
- </div>
- </div>
- </div>
- </SwiperSlide>
- </Swiper>
- </div>
- <div class="max-w-screen-2xl mx-auto relative">
- <div class="swiper-pagination swiper-pagination-3"></div>
- </div>
- </div>
- </section>
-
- <!-- 产品咨询 -->
- <section class="max-w-full h-[240px] md:h-[480px] bg-black/80 md:block">
- <div class="h-full relative">
- <div
- class="absolute top-0 left-0 w-full h-full flex flex-col gap-6 items-center justify-center z-10"
- >
- <h1
- class="text-center justify-start text-white font-normal text-xl sm:text-xl md:text-3xl px-4 sm:px-2"
- >
- {{ t("products.consultation") }}
- </h1>
- <nuxt-link
- :to="`${homepagePath}/contact`"
- class="w-32 h-10 md:w-40 md:h-11 bg-zinc-300/10 rounded-lg outline outline-1 flex items-center justify-center gap-2 outline-white/20 backdrop-blur-[10px] cursor-pointer hover:bg-zinc-300/20 transition-colors duration-200"
- >
- <span class="text-base font-normal">{{
- t("products.consultation_button")
- }}</span>
- <i class="icon-arrow-right text-sm font-normal"></i>
- </nuxt-link>
- </div>
- <img
- v-if="isMobile"
- :src="videoWebp"
- alt="video"
- class="w-full h-full object-cover opacity-20"
- />
- <video
- v-else
- :src="videoSrc"
- autoplay
- muted
- loop
- :poster="videoWebp"
- class="w-full h-full object-cover opacity-20"
- ></video>
- </div>
- </section>
- </div>
- </template>
-
- <script setup lang="ts">
- import { Swiper, SwiperSlide } from "swiper/vue";
- import {
- Navigation,
- Pagination,
- Autoplay,
- EffectCreative,
- } from "swiper/modules";
- import "swiper/css";
- import "swiper/css/navigation";
- import "swiper/css/pagination";
-
- import { useBreakpoints, breakpointsTailwind } from "@vueuse/core";
- import { useI18n, useRoute, useAsyncData, queryCollection } from "#imports";
- import video from "@/assets/videos/video.mp4";
- import videoWebp from "@/assets/videos/video.webp";
- import homeA1Webp from "@/assets/images/home-a-1.webp";
- import homeA2Webp from "@/assets/images/home-a-2.webp";
- import homeA3Webp from "@/assets/videos/banner03.mp4";
- import homeC1Webp from "@/assets/images/home-c-1.webp";
-
- // 数据类型定义
- interface Product {
- id: number;
- title: string;
- image: string;
- link: string;
- description?: string;
- name?: string;
- }
-
- interface Usage {
- id: number;
- name: string;
- category?: string;
- products: Product[];
- }
-
- interface Category {
- id: number;
- title: string;
- description: string;
- capacities: string[];
- summary: string;
- sort: number;
- image: string;
- link: string;
- audiences: number;
- }
-
- // 使用i18n
- const { t, locale } = useI18n();
- // 默认语言
- const defaultLocale = "zh";
- // 获取路由
- const route = useRoute();
- // 断点
- const breakpoints = useBreakpoints(breakpointsTailwind);
- // 是否移动端
- const isMobile = breakpoints.smaller("md");
-
- const videoSrc = ref(video);
-
- /**
- * 使用计算属性获取当前语言的数据文件URL
- */
- const usageDataUrl = computed(() => {
- return `/data/usages-${locale.value}.json`;
- });
-
- const categoryDataUrl = computed(() => {
- return `/data/categories-${locale.value}.json`;
- });
-
- const productsDataUrl = computed(() => {
- return `/data/products-${locale.value}.json`;
- });
-
- const homepagePath = computed(() => {
- return locale.value === "zh" ? "" : `/${locale.value}`;
- });
-
- // 获取按用途产品数据
- const usageList = ref<Usage[]>([]);
- const isLoadingUsage = ref(true);
- const activeUsageId = ref(1);
-
- // 获取按分类栏目数据
- const categoryList = ref<Category[]>([]);
- const isLoadingCategory = ref(true);
-
- // 加载用途数据
- const loadUsageData = async () => {
- try {
- isLoadingUsage.value = true;
- // 使用fetch获取数据
- if (process.client) {
- const response = await fetch(usageDataUrl.value);
- if (!response.ok) {
- throw new Error(`加载用途数据失败: ${response.status}`);
- }
- const usageData = await response.json();
- // 加载对应的产品数据
- const productsResponse = await fetch(productsDataUrl.value);
- if (!productsResponse.ok) {
- throw new Error(`加载产品数据失败: ${productsResponse.status}`);
- }
-
- const productsData = await productsResponse.json();
- // 处理数据
- usageList.value = usageData
- .map((usage: any) => {
- // 为每种用途找到对应的产品
- const usageProducts = [];
-
- // 按照正确的设计模式:使用用途的title与产品的usage数组进行匹配
- // 找出所有usage属性包含当前用途title的产品
- const matchedProducts = productsData.filter(
- (product: any) =>
- product.usage &&
- Array.isArray(product.usage) &&
- product.usage.includes(usage.title)
- );
-
- // 将匹配的产品添加到列表
- if (matchedProducts.length > 0) {
- matchedProducts.forEach((product: any) => {
- usageProducts.push({
- id: product.id,
- title: product.title,
- image: product.image,
- link: `${homepagePath.value}/products/${product.name}`,
- description: product.summary,
- });
- });
- } else {
- // 如果没有找到匹配的产品,添加一个占位产品
-
- usageProducts.push({
- id: `placeholder-${usage.id}`,
- title: usage.title,
- image: ``,
- link: `${homepagePath.value}/products?usage=${encodeURIComponent(
- usage.title
- )}`,
- description: "",
- });
- }
-
- return {
- id: parseInt(usage.id) || 0,
- name: usage.title,
- category: usage.category || "",
- products: usageProducts,
- };
- })
- .sort((a: any, b: any) => a.id - b.id);
-
- // 设置默认选中的用途
- if (usageList.value.length > 0) {
- activeUsageId.value = usageList.value[0].id;
- }
- }
- } catch (error) {
- console.error("Error loading usage data:", error);
- } finally {
- isLoadingUsage.value = false;
- }
- };
-
- // 加载分类数据
- const loadCategoryData = async () => {
- try {
- isLoadingCategory.value = true;
- // 使用fetch获取数据
- if (process.client) {
- const response = await fetch(categoryDataUrl.value);
- if (!response.ok) {
- throw new Error(`加载分类数据失败: ${response.status}`);
- }
-
- const data = await response.json();
-
- // 处理数据
- categoryList.value = data
- .map((category: any) => {
- return {
- id: parseInt(category.id) || 0,
- title: category.title || "",
- description: category.description || "",
- image: category.image || "",
- link: `${homepagePath.value}/products?category=${encodeURIComponent(
- category.title
- )}&audiences=${category.audiences}`,
- capacities: category.capacities || [],
- summary: category.summary || "",
- sort: category.sort || 0,
- audiences: category.audiences,
- };
- })
- .sort((a: any, b: any) => a.id - b.id);
- }
- } catch (error) {
- console.error("Error loading category data:", error);
- } finally {
- isLoadingCategory.value = false;
- }
- };
-
- // 当页面加载或语言改变时加载数据
- onMounted(() => {
- loadUsageData();
- loadCategoryData();
- });
-
- watch(locale, () => {
- loadUsageData();
- loadCategoryData();
- });
-
- // 计算当前用途列表
- const typedUsageList = computed(() => {
- return usageList.value as Usage[];
- });
-
- // 计算当前激活的索引
- const activeIndex = computed(() => {
- return typedUsageList.value.findIndex(
- (item) => item.id === activeUsageId.value
- );
- });
-
- const activeProducts = computed(() => {
- const currentUsage = typedUsageList.value.find(
- (item: Usage) => item.id === activeUsageId.value
- );
- return currentUsage?.products || [];
- });
-
- // 图片加载状态
- const isImageLoaded = ref<Record<number, boolean>>({});
- const imageErrors = ref<Record<number, boolean>>({});
-
- // 监听图片加载状态
- watch(
- activeProducts,
- (newProducts: Product[]) => {
- if (process.client) {
- newProducts.forEach((product: Product) => {
- if (product.image) {
- const img = new window.Image();
- img.onload = () => handleImageLoad(product.id);
- img.onerror = () => handleImageError(product.id);
- img.src = product.image;
- }
- });
- }
- },
- { immediate: true }
- );
-
- // 处理图片加载
- const handleImageLoad = (id: number) => {
- if (process.client) {
- isImageLoaded.value[id] = true;
- imageErrors.value[id] = false;
- }
- };
-
- // 处理图片加载错误
- const handleImageError = (id: number) => {
- if (process.client) {
- console.error(`Failed to load image for product ${id}`);
- isImageLoaded.value[id] = true;
- imageErrors.value[id] = true;
- }
- };
-
- // 处理用途点击
- const handleUsageClick = (id: number) => {
- if (process.client) {
- // 重置图片加载状态
- isImageLoaded.value = {};
- imageErrors.value = {};
- activeUsageId.value = id;
- }
- };
-
- // 计算当前分类列表
- const typedCategoryList = computed(() => {
- return categoryList.value as Category[];
- });
-
- // SEO优化
- useHead({
- title: t("home.title") + " - Hanye",
- meta: [
- {
- name: "description",
- content: t("home.description"),
- },
- {
- name: "keywords",
- content: t("home.keywords"),
- },
- ],
- });
- </script>
-
- <style lang="scss" scoped>
- :deep(.swiper-pagination-3) {
- margin: auto;
- position: static;
- padding: 1rem 0;
- }
- :deep(.swiper-pagination-bullet) {
- background-color: var(--color-bg); /* Example color */
- border: 2px solid var(--color-text);
- }
- :deep(.swiper-pagination-bullet-active) {
- background-color: var(--color-text); /* Example color */
- }
-
- .use-business {
- background-image: url("@/assets/images/business.webp");
- background-size: auto 548px;
- background-position: left top;
- background-repeat: no-repeat;
- }
-
- .use-personal {
- background-image: url("@/assets/images/personal.webp");
- background-size: auto 480px;
- background-position: right bottom;
- background-repeat: no-repeat;
- }
-
- // 优化过渡动画
- .slide-fade-enter-active,
- .slide-fade-leave-active {
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- position: absolute;
- width: 100%;
- height: 300px;
- }
-
- @media (min-width: 640px) {
- .slide-fade-enter-active,
- .slide-fade-leave-active {
- height: 350px;
- }
- }
-
- @media (min-width: 768px) {
- .slide-fade-enter-active,
- .slide-fade-leave-active {
- height: 400px;
- }
- }
-
- @media (min-width: 1024px) {
- .slide-fade-enter-active,
- .slide-fade-leave-active {
- height: 450px;
- }
- }
-
- .slide-fade-enter-from {
- opacity: 0;
- transform: translateX(30px);
- }
-
- .slide-fade-leave-to {
- opacity: 0;
- transform: translateX(-30px);
- }
-
- // 添加响应式优化
- @media (max-width: 640px) {
- .slide-fade-enter-from,
- .slide-fade-leave-to {
- transform: translateX(15px);
- }
- }
-
- // 优化图片加载动画
- @keyframes gradient {
- 0% {
- background-position: 0% 50%;
- }
- 50% {
- background-position: 100% 50%;
- }
- 100% {
- background-position: 0% 50%;
- }
- }
-
- .animate-gradient {
- background-size: 200% 200%;
- animation: gradient 3s ease infinite;
- }
-
- // 移除 pagination 相关样式
- :deep(.swiper-pagination-2) {
- display: none;
- }
-
- // 添加导航按钮禁用样式
- :deep(.swiper-button-disabled) {
- opacity: 0.35;
- cursor: not-allowed;
- pointer-events: none;
- }
-
- // 优化轮播图样式
- :deep(.swiper-container-1) {
- .swiper-slide {
- transition: all 0.5s ease;
- transform-origin: center center;
- backface-visibility: hidden;
- perspective: 1000px;
- }
-
- .swiper-pagination-bullet {
- width: 12px;
- height: 12px;
- background: transparent;
- border: 2px solid rgba(255, 255, 255, 0.5);
- opacity: 1;
- transition: all 0.3s ease;
- margin: 0 8px !important;
-
- &-active {
- background: #fff;
- border-color: #fff;
- transform: scale(1.2);
- }
- }
-
- .swiper-pagination {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 20px 0;
- }
- }
-
- // 优化图片加载动画
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: scale(1.1);
- }
- to {
- opacity: 1;
- transform: scale(1);
- }
- }
-
- .swiper-slide-active {
- img {
- animation: fadeIn 0.8s ease-out forwards;
- }
- }
-
- // 优化产品卡片动画和交互
- .swiper-slide {
- a {
- text-decoration: none;
- display: block;
- height: 100%;
-
- &:hover {
- text-decoration: none;
- }
-
- > div {
- position: relative;
- z-index: 1;
- cursor: pointer;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
-
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
- }
- }
- }
- }
-
- // 移除卡片抖动动画
- @keyframes cardHover {
- 0% {
- transform: translateY(0);
- }
- 100% {
- transform: translateY(-2px);
- }
- }
-
- // 添加渐变背景动画
- @keyframes gradient-bg {
- 0% {
- background-position: 0% 50%;
- opacity: 1;
- }
- 50% {
- background-position: 100% 50%;
- opacity: 0.85;
- }
- 100% {
- background-position: 0% 50%;
- opacity: 1;
- }
- }
-
- .animate-gradient-bg {
- background-size: 200% 200%;
- animation: gradient-bg 15s ease infinite;
- }
- </style>
|