|
|
@@ -298,7 +298,7 @@ const NewHomePage: React.FC = () => {
|
|
|
id: banner.id,
|
|
|
title: banner.title,
|
|
|
description: banner.description || '',
|
|
|
- image: banner.file?.path || unsplash.getPlaceholderImage('banner', banner.id),
|
|
|
+ image: banner.file?.fullUrl || unsplash.getPlaceholderImage(undefined, banner.id),
|
|
|
fallbackImage: '/images/placeholder-banner.jpg',
|
|
|
link: banner.linkUrl || '#'
|
|
|
}));
|
|
|
@@ -410,19 +410,15 @@ const NewHomePage: React.FC = () => {
|
|
|
|
|
|
{/* 主要内容 */}
|
|
|
<div className="pb-16">
|
|
|
- {/* 轮播图 */}
|
|
|
- {banners.length > 0 && (
|
|
|
- <div className="bg-white bg-opacity-60 backdrop-blur-sm">
|
|
|
- <EnhancedCarousel
|
|
|
- items={banners}
|
|
|
- autoPlayInterval={5000}
|
|
|
- className="rounded-b-2xl"
|
|
|
- />
|
|
|
- </div>
|
|
|
- )}
|
|
|
|
|
|
{/* 广告位轮播 */}
|
|
|
- <AdBannerCarousel />
|
|
|
+ <AdBannerCarousel ads={banners.map(banner => ({
|
|
|
+ id: banner.id,
|
|
|
+ title: banner.title,
|
|
|
+ description: banner.description,
|
|
|
+ image: banner.image,
|
|
|
+ link: banner.link
|
|
|
+ }))} />
|
|
|
|
|
|
{/* 服务分类 */}
|
|
|
<div className="mt-4 px-4">
|