|
@@ -11,11 +11,11 @@ interface Props {
|
|
|
const HomeCard: FC<PropsWithChildren<Props>> = (props) => {
|
|
|
const { banners = [] } = props;
|
|
|
return (
|
|
|
- <Swiper slidesPerView={3} spaceBetween={10}>
|
|
|
+ <Swiper slidesPerView={2} spaceBetween={10}>
|
|
|
{banners?.map((banner, index) => (
|
|
|
<SwiperSlide key={index} className={"my-[0.08rem]"}>
|
|
|
<Box
|
|
|
- className={"h-[1.0903rem] max-w-[1.2153rem]"}
|
|
|
+ className={""}
|
|
|
none
|
|
|
action={banner.action_type}
|
|
|
actionData={banner.action_params}
|
|
@@ -23,7 +23,7 @@ const HomeCard: FC<PropsWithChildren<Props>> = (props) => {
|
|
|
<img
|
|
|
src={banner.content!}
|
|
|
alt=""
|
|
|
- className={"h-[100%] w-[100%] rounded-[0.1rem]"}
|
|
|
+ className={"w-[100%] rounded-[0.06rem]"}
|
|
|
/>
|
|
|
</Box>
|
|
|
</SwiperSlide>
|