Forráskód Böngészése

fix: 修改代理样式

ansoni 3 hete
szülő
commit
1cd39c5703

+ 9 - 9
src/app/[locale]/affiliate/referrals/index.tsx

@@ -142,18 +142,18 @@ const App: FC<Props> = (props) => {
                     maxHeight={"65dvh"}
                 ></Table>
 
-                <div className="total">
-                    <div>
-                        <span className="num">
+                <div className="flex w-[100%] items-center justify-end pr-[0.2rem]">
+                    <div className={"mr-[0.2rem] text-center"}>
+                        <p className="text-bg-block-foreground-color text-[.18rem]">
                             {t("R$")} {dataSource.list[0]?.count_score ?? 0}
-                        </span>
-                        <span>{t("Aposta")}</span>
+                        </p>
+                        <p className={"text-[0.11rem]"}>{t("Aposta")}</p>
                     </div>
-                    <div>
-                        <span className="num">
+                    <div className={"text-center"}>
+                        <p className="text-bg-block-foreground-color text-[.18rem]">
                             {t("R$")} {dataSource.list[0]?.count_commissar ?? 0}
-                        </span>
-                        <span>{t("Comissão")}</span>
+                        </p>
+                        <p className={"text-[0.11rem]"}>{t("Comissão")}</p>
                     </div>
                 </div>
             </div>

+ 9 - 9
src/components/Card/Card.tsx

@@ -230,15 +230,15 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
 
                         <div className={"flex w-[2.2rem] justify-start"}>
                             {/* 只是PG游戏展示demo试玩按钮 */}
-                            {(item?.category_name === "Pragmaticplay" ||
-                                item?.category_name === "PP") && (
-                                <div
-                                    onClick={() => demoPlayGameHandler({ ...item!, demo: 1 })}
-                                    className={`flex h-[0.46rem] w-[1rem] items-center justify-center rounded-[.24rem] bg-[#11de68] text-[0.15rem] font-bold`}
-                                >
-                                    {t("demo")}
-                                </div>
-                            )}
+                            {/*{(item?.category_name === "Pragmaticplay" ||*/}
+                            {/*    item?.category_name === "PP") && (*/}
+                            {/*    <div*/}
+                            {/*        onClick={() => demoPlayGameHandler({ ...item!, demo: 1 })}*/}
+                            {/*        className={`flex h-[0.46rem] w-[1rem] items-center justify-center rounded-[.24rem] bg-[#11de68] text-[0.15rem] font-bold`}*/}
+                            {/*    >*/}
+                            {/*        {t("demo")}*/}
+                            {/*    </div>*/}
+                            {/*)}*/}
                             <div
                                 onClick={() => playGameHandler(item!)}
                                 // style={{

+ 2 - 2
src/hooks/useGame.tsx

@@ -50,11 +50,11 @@ const useGame = () => {
                     // 然后是文档对象
                     if (game_url.indexOf("!doctype") !== -1) {
                         sessionStorage.setItem("game_url", res.data.game_url);
-                        const url = `${encodeURI(window.location.href)}&return_url=${encodeURI(window.location.href.replace(pathname, ""))}&category_name=${game.provider}`;
+                        const url = `${encodeURI(window.location.href)}&return_url=${encodeURIComponent(window.location.href.replace(pathname, ""))}&category_name=${game.provider}`;
                         router.push(`/game?${url}`);
                         return;
                     }
-                    const url = `${encodeURI(res.data.game_url)}&return_url=${encodeURI(window.location.href.replace(pathname, ""))}&category_name=${game.provider}`;
+                    const url = `${encodeURI(res.data.game_url)}&return_url=${encodeURIComponent(window.location.href.replace(pathname, ""))}&category_name=${game.provider}`;
 
                     // 如果是pp游戏,则当前窗口打开新的地址,不需要加return_url
                     // gid 如果开头是1的6位数的数字,则认为是pp游戏

+ 1 - 0
tailwind.config.ts

@@ -79,6 +79,7 @@ const config: Config = {
             "primary-color": "var(--primary-color)",
             "bg-color": "var(--bg-color)",
             "bg-block-color": "var(--bg-block-color)",
+            "bg-block-foreground-color": "var(--block-foreground-color)",
             "linear-color": "linear-gradient(180deg, #ffaa30, #ffe6be)",
         },
     },