|
|
@@ -6,6 +6,8 @@ import TextArea from "antd/es/input/TextArea";
|
|
|
import classNames from "classnames";
|
|
|
import { ArrowUpOutlined } from "@ant-design/icons";
|
|
|
import http from "@/utils/http";
|
|
|
+import { isH5Fu, isWeiFu } from "@/utils/pcOrH5";
|
|
|
+import history from "@/utils/history";
|
|
|
function Z1Gather() {
|
|
|
// const timeRef = useRef(-1);
|
|
|
useEffect(() => {
|
|
|
@@ -71,13 +73,22 @@ function Z1Gather() {
|
|
|
localStorage.setItem("HDB_WJ", "1");
|
|
|
FormBoxRef.current.resetFields();
|
|
|
window.setTimeout(() => {
|
|
|
- window.opener = null;
|
|
|
- window.open("", "_self");
|
|
|
- window.close();
|
|
|
- // 2023删除
|
|
|
- window.open(
|
|
|
- "https://haidebao.4dage.com/webHot/index.html#/?m=e3bv6739474&time=1681093455388&id=1172_1"
|
|
|
- );
|
|
|
+ if (isH5Fu()) {
|
|
|
+ if (isWeiFu()) history.go(-1);
|
|
|
+ else {
|
|
|
+ window.opener = null;
|
|
|
+ window.open("", "_self");
|
|
|
+ window.close();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ window.opener = null;
|
|
|
+ window.open("", "_self");
|
|
|
+ window.close();
|
|
|
+ // 2023删除
|
|
|
+ window.open(
|
|
|
+ "https://haidebao.4dage.com/webHot/index.html#/?m=e3bv6739474&time=1681093455388&id=1172_1"
|
|
|
+ );
|
|
|
+ }
|
|
|
}, 500);
|
|
|
}
|
|
|
}, []);
|