|
@@ -11,6 +11,7 @@ import { Swiper, SwiperSlide } from "swiper/react";
|
|
|
import { Navigation } from "swiper";
|
|
|
import "swiper/css";
|
|
|
import "swiper/css/navigation";
|
|
|
+import ImageLazy from "@/components/ImageLazy";
|
|
|
|
|
|
function A4Intro() {
|
|
|
const data = useSelector((state: RootState) => state.A0Layout.dataAll.Home);
|
|
@@ -82,21 +83,25 @@ function A4Intro() {
|
|
|
// onSwiper={(swiper) => console.log(swiper)}
|
|
|
>
|
|
|
{imgArr.map((v, i) => (
|
|
|
- <SwiperSlide key={v}>
|
|
|
- <img
|
|
|
- onClick={() =>
|
|
|
- store.dispatch({
|
|
|
- type: "layout/lookBigImg",
|
|
|
- payload: {
|
|
|
- show: true,
|
|
|
- url: lookArr(),
|
|
|
- current: i,
|
|
|
- },
|
|
|
- })
|
|
|
- }
|
|
|
- className="swImg"
|
|
|
+ <SwiperSlide
|
|
|
+ key={v}
|
|
|
+ onClick={() =>
|
|
|
+ store.dispatch({
|
|
|
+ type: "layout/lookBigImg",
|
|
|
+ payload: {
|
|
|
+ show: true,
|
|
|
+ url: lookArr(),
|
|
|
+ current: i,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+ >
|
|
|
+ <ImageLazy
|
|
|
+ noLook={true}
|
|
|
+ offline={true}
|
|
|
+ width="100%"
|
|
|
+ height="100%"
|
|
|
src={`${baseURL}/4Intro/pc/${v + 1}.jpg`}
|
|
|
- alt=""
|
|
|
/>
|
|
|
</SwiperSlide>
|
|
|
))}
|