Browse Source

fix: 修改游戏链接,增加Bouns状态

ansoni 5 months ago
parent
commit
87da95aee5

+ 2 - 1
messages/br.json

@@ -413,7 +413,8 @@
     "16": "activity",
     "20": "Bônus to cash",
     "21": "Free to cash",
-    "22": "Replay to cash"
+    "22": "Replay to cash",
+    "24": "Reembolso de saque"
   },
   "activityType": {
     "1": "Primeira recarga",

+ 2 - 1
messages/en.json

@@ -412,7 +412,8 @@
     "16": "activity",
     "20": "Bonus coin withdrawals",
     "21": "Free coin withdrawals",
-    "22": "Replay Coin withdrawal"
+    "22": "Replay Coin withdrawal",
+    "24": "Reembolso de saque"
   },
   "activityType": {
     "1": "Primeira recarga",

+ 1 - 1
src/app/[locale]/(TabBar)/[[...share]]/layout.tsx

@@ -42,7 +42,7 @@ const Layout: FC<PropsWithChildren<Props>> = (props) => {
             {clientWidget}
             <DownloadSection />
             <Header></Header>
-            <main id="maincontainer" className={"main-header"}>
+            <main id="maincontainer" className={"main-header container mx-auto"}>
                 {/*弹窗*/}
                 {popupWidget}
                 <Box>

+ 1 - 0
src/components/DateSelect/index.tsx

@@ -10,6 +10,7 @@ interface Props {
     onChange: () => void;
     defaultValue?: Date | null;
     min: Date | undefined;
+
     max: Date | undefined;
 }
 const DateSelect: FC<Props> = (props) => {

+ 1 - 1
src/components/Footer/style.scss

@@ -3,7 +3,7 @@
   background-color: #292929;
   display: flex;
   flex-direction: column;
-  max-width: $-body-width;
+  //max-width: $-body-width;
   width: 100%;
   height: $-footer-height;
   .footer-item {

+ 1 - 1
src/components/Header/style.module.scss

@@ -3,7 +3,7 @@
     //position: fixed;
     //z-index: 9;
     width: 100%;
-    max-width: $-body-width;
+    //max-width: $-body-width;
     background: $-theme-color ;
     //transform: translate3d(200px, 0, 0);
 

+ 3 - 4
src/hooks/useGame.tsx

@@ -1,7 +1,6 @@
 import { GameListRep, GameRequest, getGameDetailApi } from "@/api/home";
 import { useEventPoint } from "@/hooks/useEventPoint";
 import { defaultLocale, usePathname, useRouter } from "@/i18n/routing";
-import { brandList } from "@/utils/constant";
 import { getCookies } from "@/utils/Cookies";
 import { Toast } from "antd-mobile";
 import { useTranslations } from "next-intl";
@@ -18,7 +17,7 @@ const useGame = () => {
             duration: 0,
             maskStyle: { zIndex: 99999, background: "rgba(0,0,0,0.5)" },
         });
-        const brand = brandList.find((item) => item.gid === game.game_id)?.brand ?? "";
+        // const brand = brandList.find((item) => item.gid === game.game_id)?.brand ?? "";
         const lang = getCookies("language") || defaultLocale;
         getGameDetailApi({ ...params, language: lang === "br" ? "pt" : lang })
             .then((res) => {
@@ -30,11 +29,11 @@ const useGame = () => {
                     // 然后是文档对象
                     if (game_url.indexOf("!doctype") !== -1) {
                         sessionStorage.setItem("game_url", res.data.game_url);
-                        const url = `${encodeURI(window.location.href)}&brand=${brand}&return_url=${window.location.href.replace(pathname, "")}&category_name=${game.provider}`;
+                        const url = `${encodeURI(window.location.href)}&return_url=${window.location.href.replace(pathname, "")}&category_name=${game.provider}`;
                         router.push(`/game?${url}`);
                         return;
                     }
-                    const url = `${encodeURI(res.data.game_url)}&brand=${brand}&return_url=${window.location.href.replace(pathname, "")}&category_name=${game.provider}`;
+                    const url = `${encodeURI(res.data.game_url)}&return_url=${window.location.href.replace(pathname, "")}&category_name=${game.provider}`;
                     if (new RegExp("https").test(game_url)) {
                         // 如果是https
                         router.push(`/game?${url}`);