|
@@ -7,7 +7,6 @@ import SlotsModal, { SlotModalRefProps } from "@/components/ModalPopup/SlotsModa
|
|
|
import WheelModal, { WheelModalProps } from "@/components/ModalPopup/WheelModal";
|
|
|
|
|
|
import { getWheelApi } from "@/api/cashWheel";
|
|
|
-import { getShareApi } from "@/api/config";
|
|
|
import { getGiveInfoApi } from "@/api/slots";
|
|
|
import { Link } from "@/i18n/routing";
|
|
|
import { useGlobalNoticeStore } from "@/stores/useGlobalNoticeStore";
|
|
@@ -17,7 +16,6 @@ import { useRequest } from "ahooks";
|
|
|
import { Badge } from "antd-mobile";
|
|
|
import { useTranslations } from "next-intl";
|
|
|
import Image from "next/image";
|
|
|
-import { useSearchParams } from "next/navigation";
|
|
|
import { FC, useEffect, useRef } from "react";
|
|
|
|
|
|
interface Props {
|
|
@@ -283,16 +281,9 @@ const ServiceWidget: FC<Props> = (props) => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- const serach = useSearchParams();
|
|
|
-
|
|
|
useEffect(() => {
|
|
|
// 数据存储,侧边栏使用
|
|
|
// setSocials(socials);
|
|
|
-
|
|
|
- // 分享地址
|
|
|
- if (serach.get("ch")) {
|
|
|
- getShareApi({ channel_url: window.location.href });
|
|
|
- }
|
|
|
}, []);
|
|
|
|
|
|
const t = useTranslations("HomePage");
|