소스 검색

feat: 隐藏nobonus

year 1 개월 전
부모
커밋
612f13233a
3개의 변경된 파일19개의 추가작업 그리고 20개의 파일을 삭제
  1. 14 14
      src/app/[locale]/(TabBar)/deposit/DepositData.tsx
  2. 2 3
      src/components/HeaderBack/index.tsx
  3. 3 3
      src/components/ModalPopup/WalletDescribeModal/index.tsx

+ 14 - 14
src/app/[locale]/(TabBar)/deposit/DepositData.tsx

@@ -13,7 +13,7 @@ import { useWalletStore } from "@/stores/useWalletStore";
 import "@/styles/deposit.scss";
 import { neReg } from "@/utils";
 import { server } from "@/utils/client";
-import { Button, Dialog, Form, Input, Toast } from "antd-mobile";
+import { Button, Form, Input, Toast } from "antd-mobile";
 import { FormInstance } from "antd-mobile/es/components/form";
 import clsx from "clsx";
 import { useTranslations } from "next-intl";
@@ -115,19 +115,19 @@ const DepositData: FC<Props> = (props) => {
         setCurrentProduct(result);
     };
     const onFinish = async (values: any) => {
-        if (wallet?.is_open_no_bonus) {
-            const confirmRes = await Dialog.confirm({
-                content: <div className="text-[#fff]">{t(`ProfilePage.depositeWarn`)}</div>,
-                confirmText: t("ProfilePage.sure"),
-                cancelText: t("ProfilePage.cancel"),
-                bodyStyle: {
-                    backgroundColor: "#373737",
-                    color: "#fff",
-                },
-                bodyClassName: "customConfirm",
-            });
-            if (!confirmRes) return;
-        }
+        // if (wallet?.is_open_no_bonus) {
+        //     const confirmRes = await Dialog.confirm({
+        //         content: <div className="text-[#fff]">{t(`ProfilePage.depositeWarn`)}</div>,
+        //         confirmText: t("ProfilePage.sure"),
+        //         cancelText: t("ProfilePage.cancel"),
+        //         bodyStyle: {
+        //             backgroundColor: "#373737",
+        //             color: "#fff",
+        //         },
+        //         bodyClassName: "customConfirm",
+        //     });
+        //     if (!confirmRes) return;
+        // }
 
         if (!amount) return Toast.show({ content: t("form.amount") });
         const params = {

+ 2 - 3
src/components/HeaderBack/index.tsx

@@ -1,7 +1,6 @@
 "use client";
 import { usePathname, useRouter } from "@/i18n/routing";
 import { useWalletStore } from "@/stores/useWalletStore";
-import { getToken } from "@/utils/Cookies";
 import clsx from "clsx";
 import { useTranslations } from "next-intl";
 import { FC, PropsWithChildren, ReactNode, useEffect, useState } from "react";
@@ -85,13 +84,13 @@ const HeaderBack: FC<PropsWithChildren<HeaderBackProps>> = ({
                 {(title || selfTitle) && <span>{title || selfTitle}</span>}
             </div>
             <div className={styles.content}>{children}</div>
-            {getToken() && (
+            {/* {getToken() && (
                 <div>
                     {wallet.is_open_no_bonus === 1 && (
                         <img src="/img/no_bouns.png" alt="" className="h-[20px]" />
                     )}
                 </div>
-            )}
+            )} */}
 
             {!Right && (
                 <span className={styles.right} onClick={() => goPage("home")}>

+ 3 - 3
src/components/ModalPopup/WalletDescribeModal/index.tsx

@@ -1,7 +1,7 @@
 import { Wallet, cleanBounsApi, getUserMoneyApi, toggleUserBounsApi } from "@/api/user";
 import { useWalletStore } from "@/stores/useWalletStore";
 import { percentage } from "@/utils/methods";
-import { Dialog, ProgressBar, Switch, Toast } from "antd-mobile";
+import { Dialog, ProgressBar, Toast } from "antd-mobile";
 import { useTranslations } from "next-intl";
 import React from "react";
 import "./style.scss";
@@ -147,7 +147,7 @@ export const BonusContent = (props: { wallet: Wallet; handleAcquire?: any }) =>
                 <li className="mt-[.06rem]">{t("bonusDesc2")}</li>
                 <li className="mt-[.06rem]">{t("bonusDesc3")}</li>
             </ul>
-            <div className="mt-[.15rem] rounded-[8px] border-[1px] border-[#e540ff] bg-[#2f4cc8] shadow-[0_-10px_25px_#e641ff_inset]">
+            {/* <div className="mt-[.15rem] rounded-[8px] border-[1px] border-[#e540ff] bg-[#2f4cc8] shadow-[0_-10px_25px_#e641ff_inset]">
                 <div className="flex flex-row items-center justify-between border-b-[1px] border-[#e540ff] p-[8px]">
                     <span className="text-[#fff]">{t("bounsTitle1")}</span>
                     <Switch
@@ -178,7 +178,7 @@ export const BonusContent = (props: { wallet: Wallet; handleAcquire?: any }) =>
                         {t("boundsBtn")}
                     </a>
                 </div>
-            </div>
+            </div> */}
             {handleAcquire && (
                 <a
                     className={`carteira-box ${wallet.is_point_transfer ? "active" : ""}`}