|
|
@@ -88,7 +88,132 @@ |
|
|
|
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="/products/1" |
|
|
|
: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> |
|
|
|
<SwiperSlide> |
|
|
|
<div |
|
|
|
class="max-w-screen-2xl mx-auto h-full relative" |
|
|
|
:style="{ |
|
|
|
backgroundImage: `url(${homeA2Webp})`, |
|
|
|
backgroundSize: 'cover', |
|
|
|
backgroundPosition: 'center', |
|
|
|
backgroundRepeat: 'no-repeat', |
|
|
|
}" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="w-full h-full flex-col justify-center hidden md:flex relative z-10" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="rounded border border-white w-11 h-6 leading-none justify-center flex items-center text-white text-sm font-normal" |
|
|
|
> |
|
|
|
SSD |
|
|
|
</div> |
|
|
|
<div class="justify-center"> |
|
|
|
<span class="text-white text-6xl font-normal leading-[78px]">{{ |
|
|
|
t("home.carousel.one.title") |
|
|
|
}}</span> |
|
|
|
<span class="text-white text-6xl font-normal leading-[78px]">{{ |
|
|
|
t("home.carousel.one.description") |
|
|
|
}}</span> |
|
|
|
<br /> |
|
|
|
<span class="text-white text-6xl font-normal leading-[78px]">{{ |
|
|
|
t("home.carousel.one.description2") |
|
|
|
}}</span |
|
|
|
><br /> |
|
|
|
<span |
|
|
|
class="text-cyan-400 text-6xl font-normal leading-[78px]" |
|
|
|
>{{ t("home.carousel.one.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.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="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}/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> |
|
|
|
<SwiperSlide> |
|
|
|
<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="rounded border border-white w-11 h-6 leading-none justify-center flex items-center text-white text-sm font-normal" |
|
|
|
> |
|
|
|
SSD |
|
|
|
</div> |
|
|
|
<div class="justify-center"> |
|
|
|
<span class="text-white text-6xl font-normal leading-[78px]">{{ |
|
|
|
t("home.carousel.one.title") |
|
|
|
}}</span> |
|
|
|
<span class="text-white text-6xl font-normal leading-[78px]">{{ |
|
|
|
t("home.carousel.one.description") |
|
|
|
}}</span> |
|
|
|
<br /> |
|
|
|
<span class="text-white text-6xl font-normal leading-[78px]">{{ |
|
|
|
t("home.carousel.one.description2") |
|
|
|
}}</span |
|
|
|
><br /> |
|
|
|
<span |
|
|
|
class="text-cyan-400 text-6xl font-normal leading-[78px]" |
|
|
|
>{{ t("home.carousel.one.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.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="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}/products/HE80-2TNLHS`" |
|
|
|
class="w-full h-full !flex items-center justify-center text-zinc-900" |
|
|
|
> |
|
|
|
{{ t("products.view_details") }} |
|
|
@@ -538,8 +663,11 @@ 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; |
|
|
@@ -580,16 +708,6 @@ const isMobile = breakpoints.smaller("md"); |
|
|
|
|
|
|
|
const videoSrc = ref(video); |
|
|
|
|
|
|
|
// 获取轮播图数据(由于没有对应的content文件,这里保留为静态数据) |
|
|
|
const carouselList = ref([ |
|
|
|
{ |
|
|
|
id: 1, |
|
|
|
title: "高性能SSD", |
|
|
|
image: homeA1Webp, |
|
|
|
link: "/products/W400-1TBSY01", |
|
|
|
}, |
|
|
|
]); |
|
|
|
|
|
|
|
/** |
|
|
|
* 使用计算属性获取当前语言的数据文件URL |
|
|
|
*/ |
|
|
@@ -676,7 +794,9 @@ const loadUsageData = async () => { |
|
|
|
id: `placeholder-${usage.id}`, |
|
|
|
title: usage.title, |
|
|
|
image: ``, |
|
|
|
link: `${homepagePath.value}/products?usage=${encodeURIComponent(usage.title)}`, |
|
|
|
link: `${homepagePath.value}/products?usage=${encodeURIComponent( |
|
|
|
usage.title |
|
|
|
)}`, |
|
|
|
description: "", |
|
|
|
}); |
|
|
|
} |
|
|
@@ -724,7 +844,9 @@ const loadCategoryData = async () => { |
|
|
|
title: category.title || "", |
|
|
|
description: category.description || "", |
|
|
|
image: category.image || "", |
|
|
|
link: `${homepagePath.value}/products?category=${encodeURIComponent(category.title)}`, |
|
|
|
link: `${homepagePath.value}/products?category=${encodeURIComponent( |
|
|
|
category.title |
|
|
|
)}`, |
|
|
|
capacities: category.capacities || [], |
|
|
|
summary: category.summary || "", |
|
|
|
sort: category.sort || 0, |