import React from "react";
import styles from "./index.module.scss";
import history from "@/utils/history";
import { envUrl } from "@/utils/env";
import ImgLoding from "@/components/ImgLoding";
import { imgLodingFu } from "../A0Map/data";
function A1Home() {
  return (
    <div className={styles.A1Home}>
      {/* 大图片加载中 */}
      <ImgLoding id={-1} />

      <img
        className="HomeBac"
        onLoad={() => imgLodingFu(-1)}
        src={`${envUrl}/home/homeBg.jpg`}
        alt=""
      />

      <div className="btn" onClick={() => history.push("/main")}>
        <img src={`${envUrl}/home/homeBtn.png`} alt="" />
      </div>
    </div>
  );
}

const MemoA1Home = React.memo(A1Home);

export default MemoA1Home;
