|
@@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from "react";
|
|
import styles from "./index.module.scss";
|
|
import styles from "./index.module.scss";
|
|
import { baseUrl } from "@/index";
|
|
import { baseUrl } from "@/index";
|
|
import { useSelector } from "react-redux";
|
|
import { useSelector } from "react-redux";
|
|
-import { RootState } from "@/store";
|
|
|
|
|
|
+import store, { RootState } from "@/store";
|
|
import classNames from "classnames";
|
|
import classNames from "classnames";
|
|
import btnImg from "@/assets/img/tab2/btn_m.png";
|
|
import btnImg from "@/assets/img/tab2/btn_m.png";
|
|
import { SwapRightOutlined } from "@ant-design/icons";
|
|
import { SwapRightOutlined } from "@ant-design/icons";
|
|
@@ -21,6 +21,9 @@ function B1CardM({ closeFu, clickCardFu }: Props) {
|
|
const [ind, setInd] = useState(0);
|
|
const [ind, setInd] = useState(0);
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
|
+ // 建筑 进入 村落卡片 点X关闭的 样式冲突问题
|
|
|
|
+ store.dispatch({ type: "layout/isCardShow", payload: true });
|
|
|
|
+
|
|
let num = 0;
|
|
let num = 0;
|
|
|
|
|
|
const temp = window.location.hash;
|
|
const temp = window.location.hash;
|
|
@@ -57,7 +60,13 @@ function B1CardM({ closeFu, clickCardFu }: Props) {
|
|
return (
|
|
return (
|
|
<div className={styles.B1CardM}>
|
|
<div className={styles.B1CardM}>
|
|
{/* 右上角的按钮 */}
|
|
{/* 右上角的按钮 */}
|
|
- <div className="B1Cback" onClick={closeFu}>
|
|
|
|
|
|
+ <div
|
|
|
|
+ className="B1Cback"
|
|
|
|
+ onClick={() => {
|
|
|
|
+ store.dispatch({ type: "layout/isCardShow", payload: false });
|
|
|
|
+ closeFu();
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
<img src={`${baseUrl}/A1Home/mobile/icon_cancel.png`} alt="" />
|
|
<img src={`${baseUrl}/A1Home/mobile/icon_cancel.png`} alt="" />
|
|
</div>
|
|
</div>
|
|
|
|
|