|
@@ -34,6 +34,7 @@ function A0Map({ type, sonChaneType }: Props) {
|
|
|
|
|
|
{/* 一级地图盒子 */}
|
|
|
<div
|
|
|
+ style={{ opacity: mapSon ? "0" : "1" }}
|
|
|
className={classNames(
|
|
|
"mapMain",
|
|
|
type === 2 ? "mapMain2" : type === 3 ? "mapMain3" : ""
|
|
@@ -45,7 +46,7 @@ function A0Map({ type, sonChaneType }: Props) {
|
|
|
onMouseEnter={() => setIsHover(v.id)}
|
|
|
onMouseLeave={() => setIsHover(0)}
|
|
|
onClick={() => {
|
|
|
- setMapSon(v.id);
|
|
|
+ setMapSon(v.imgId);
|
|
|
sonChaneType(2);
|
|
|
}}
|
|
|
key={v.id}
|
|
@@ -83,7 +84,7 @@ function A0Map({ type, sonChaneType }: Props) {
|
|
|
{maoData2.map((v) => (
|
|
|
<div
|
|
|
onClick={() => {
|
|
|
- window.open(baseURL+v.link);
|
|
|
+ window.open(baseURL + v.link);
|
|
|
// setMapSon(v.id);
|
|
|
sonChaneType(3);
|
|
|
}}
|
|
@@ -124,7 +125,7 @@ function A0Map({ type, sonChaneType }: Props) {
|
|
|
))}
|
|
|
|
|
|
{/* 一级地图 图片 */}
|
|
|
- <div className="mapBac" hidden={mapSon !== 0}>
|
|
|
+ <div className="mapBac">
|
|
|
<img
|
|
|
onLoad={() => imgLodingFu(0)}
|
|
|
src={`${envUrl}/map/0.jpg`}
|