Bladeren bron

免费/重玩游戏点击钱包自动弹窗

XianCH 4 maanden geleden
bovenliggende
commit
6aafbb08c4
2 gewijzigde bestanden met toevoegingen van 8 en 2 verwijderingen
  1. 4 1
      src/app/[locale]/(TabBar)/freeGames/page.tsx
  2. 4 1
      src/app/[locale]/(TabBar)/replayGames/page.tsx

+ 4 - 1
src/app/[locale]/(TabBar)/freeGames/page.tsx

@@ -15,7 +15,7 @@ import { Pagination, WalletEnum } from "@/types";
 import { useSetState } from "ahooks";
 import { InfiniteScroll } from "antd-mobile";
 import { useTranslations } from "next-intl";
-import { FC, useRef, useState } from "react";
+import { FC, useEffect, useRef, useState } from "react";
 
 const Header = () => {
     const { wallet } = useWalletStore((state) => ({
@@ -31,6 +31,9 @@ const Header = () => {
         setTipsStatus(key);
         tipsRef.current?.onOpen();
     };
+    useEffect(() => {
+        modalHandler('Free')
+    }, [])
     return (
         <>
             <HeaderBack showBack={true} title={"Free Wallet"}>

+ 4 - 1
src/app/[locale]/(TabBar)/replayGames/page.tsx

@@ -15,7 +15,7 @@ import { Pagination, WalletEnum } from "@/types";
 import { useSetState } from "ahooks";
 import { InfiniteScroll } from "antd-mobile";
 import { useTranslations } from "next-intl";
-import { FC, useRef, useState } from "react";
+import { FC, useEffect, useRef, useState } from "react";
 
 const Header = () => {
     const { wallet } = useWalletStore((state) => ({
@@ -31,6 +31,9 @@ const Header = () => {
         setTipsStatus(key);
         tipsRef.current?.onOpen();
     };
+    useEffect(() => {
+        modalHandler("Replay")
+    }, [])
     return (
         <>
             <HeaderBack showBack={true} title={"Replay Wallet"}>