|
|
@@ -15,7 +15,7 @@ import "swiper/css";
|
|
|
import "swiper/css/navigation";
|
|
|
import type {HomeApiData,HomeProduct } from "@/types/home/type"
|
|
|
import {CustomerService} from "@/components/common/CustomerService/CustomerService";
|
|
|
-// import AddToCartModalNew from "@/components/common/AddToCartModal/AddToCartModalNew";
|
|
|
+import AddToCartModalNew from "@/components/common/AddToCartModal/AddToCartModalNew";
|
|
|
// 定义组件入参类型
|
|
|
interface HomeContentProps {
|
|
|
homeData: HomeApiData;
|
|
|
@@ -160,9 +160,9 @@ export default function HomeContent({ homeData }: HomeContentProps) {
|
|
|
</div>
|
|
|
<CustomerService />
|
|
|
<button onClick={() => setIsOpen(true)}>test</button>
|
|
|
- {/* <AddToCartModalNew
|
|
|
+ <AddToCartModalNew
|
|
|
isOpen={isOpen}
|
|
|
onClose={closeHandler}
|
|
|
- /> */}
|
|
|
+ />
|
|
|
</>);
|
|
|
}
|