Explorar o código

提现逻辑修改

zcj03 hai 7 meses
pai
achega
40cdc2318e

+ 2 - 2
src/app/[locale]/(TabBar)/[[...share]]/_home/HomePrize.tsx

@@ -30,7 +30,7 @@ const HomePrize: FC<Props> = () => {
     }, [])
 
     const [visible, setVisible] = useState(false);
-    const [gameInfo, setGameInfo] = useState({});
+    const [gameInfo, setGameInfo] = useState<any>({});
     const handler = (game: GameListRep) => {
         setVisible(true);
         setGameInfo(game)
@@ -53,7 +53,7 @@ const HomePrize: FC<Props> = () => {
             return;
         }
 
-        const params = {
+        const params: any = {
             id: gameInfo.id + "",
             mode: groupType!,
         };

+ 2 - 1
src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

@@ -83,7 +83,8 @@ const WalletCard = (props: { userMoney: Wallet }) => {
     };
 
     // 彩金、免费币、重玩币提现到钱包操作
-    const handleAcquire = async (wallet_type: number) => {
+    const handleAcquire = async (wallet_type: number, transfer: boolean) => {
+        if(!transfer) return;
         getUserTransferApi({ wallet_type })
         .then((res) => {
             if (res.code === 200) {

+ 6 - 2
src/app/[locale]/(TabBar)/profile/page.scss

@@ -263,14 +263,18 @@
       width: 2.2rem;
       height: .3rem;
       line-height: .3rem;
-      background: -o-linear-gradient(top, #ff9323, #ff6a01);
-      background: linear-gradient(180deg, #ff9323, #ff6a01);
       border-radius: 0.04rem;
       color: #fff;
       font-size: 0.13rem;
       margin: 0 auto;
       margin-top: .1rem;
       text-align: center;
+      background: #ccc;
+
+      &.active {
+        background: -o-linear-gradient(top, #ff9323, #ff6a01);
+        background: linear-gradient(180deg, #ff9323, #ff6a01);
+      }
     }
 
 }

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

@@ -78,7 +78,7 @@ export const BonusContent = (props: { wallet: Wallet, handleAcquire?: any }) =>
                 <li>{t("bonusDesc3")}</li>
             </ul>
             {
-                handleAcquire && wallet.is_point_transfer && <a className={"carteira-box"} onClick={() => handleAcquire(2)}>{t("carteira")}</a>
+                handleAcquire && <a className={`carteira-box ${wallet.is_point_transfer ? 'active' : ''}`} onClick={() => handleAcquire(2, wallet.is_point_transfer)}>{t("carteira")}</a>
             }
         </div>
     );
@@ -101,7 +101,7 @@ export const FreeContent = (props: { wallet: Wallet, handleAcquire?: any }) => {
                 <li>{t("freeDesc2")}</li>
             </ul>
             {
-                handleAcquire && wallet.is_free_transfer && <a className={"carteira-box"} onClick={() => handleAcquire(3)}>{t("carteira")}</a>
+                handleAcquire && <a className={`carteira-box ${wallet.is_free_transfer ? 'active' : ''}`} onClick={() => handleAcquire(3, wallet.is_free_transfer)}>{t("carteira")}</a>
             }
         </div>
     );
@@ -123,7 +123,7 @@ export const ReplayContent = (props: { wallet: Wallet, handleAcquire?: any }) =>
                 <li>{t("replayDesc2")}</li>
             </ul>
             {
-                handleAcquire && wallet.is_lose_transfer && <a className={"carteira-box"} onClick={() => handleAcquire(4)}>{t("carteira")}</a>
+                handleAcquire && <a className={`carteira-box ${wallet.is_lose_transfer ? 'active' : ''}`} onClick={() => handleAcquire(4, wallet.is_lose_transfer)}>{t("carteira")}</a>
             }
         </div>
     );