Sfoglia il codice sorgente

fix: 修改钱包弹窗展出方式

Before 8 mesi fa
parent
commit
c7471bb541
2 ha cambiato i file con 28 aggiunte e 24 eliminazioni
  1. 12 10
      .env.local
  2. 16 14
      src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

+ 12 - 10
.env.local

@@ -1,13 +1,15 @@
+# 环境
 #baseurl
-NEXT_PUBLIC_BASE_URL=https://ot-api.tiktokjakjkl.icu
+NEXT_PUBLIC_BASE_URL=http://192.168.0.84:8800
 #share link
-NEXT_PUBLIC_SHARE_URL=https://ot-site.tiktokjakjkl.icu
+NEXT_PUBLIC_SHARE_URL=http://192.168.0.84:3000
+
 #firebase
-NEXT_PUBLIC_FIREBASE_APIKEY=AIzaSyCIE8xtySsYztsSgmQJx_aqPrrpHEuvgvw
-NEXT_PUBLIC_FIREBASE_AUTHDOMAIN=bcwin777-1bdda.firebaseapp.com
-NEXT_PUBLIC_FIREBASE_PROJECTID=bcwin777-1bdda
-NEXT_PUBLIC_FIREBASE_STORAGEBUCKET=bcwin777-1bdda.firebasestorage.app
-NEXT_PUBLIC_FIREBASE_MESSAGINGSENDERID=542456379513
-NEXT_PUBLIC_FIREBASE_APPID=1:542456379513:web:851a46fc639085170bfca8
-NEXT_PUBLIC_FIREBASE_MEASUREMENTID=G-GV6Y8DXHHD
-NEXT_PUBLIC_FIREBASE_KEYS=BOCfpA08vK6uxhMdRblnx9gPVBLx9WpTn9AutVNhHQQpVtXzDIKW0X6cmsNRaFDhyFDJfMqWjqC7mq6uDFIKU_M
+NEXT_PUBLIC_FIREBASE_APIKEY=AIzaSyDAWORGKhdyzb5KeqTi535VmD5gN2Cdle8
+NEXT_PUBLIC_FIREBASE_AUTHDOMAIN=bcwin-a99b1.firebaseapp.com
+NEXT_PUBLIC_FIREBASE_PROJECTID=bcwin-a99b1
+NEXT_PUBLIC_FIREBASE_STORAGEBUCKET=bcwin-a99b1.appspot.com
+NEXT_PUBLIC_FIREBASE_MESSAGINGSENDERID=1055413612814
+NEXT_PUBLIC_FIREBASE_APPID=1:1055413612814:web:7a563237de8e43849d275f
+NEXT_PUBLIC_FIREBASE_MEASUREMENTID=G-467M2BYJMS
+NEXT_PUBLIC_FIREBASE_KEYS=BAOsT7kii-ctLzGrgXe_wYhfuxlme1v4njnD0uPSKp3DpSnrUa2e709b9dRaeYVU7jF_qIx1y9tEv0CvilDCdnM

+ 16 - 14
src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

@@ -231,14 +231,16 @@ const WalletCard = (props: { userMoney: Wallet }) => {
             <div className="coin">
                 <span className="coin_left__icon iconfont icon-icon-wallet"></span>
                 <div className={"coin_right_wallet"}>
-                    <div className={"wallet_left_border"}>
+                    <div
+                        className={"wallet_left_border"}
+                        onClick={() => modalHandler(WalletEnum.Balance)}
+                    >
                         <div className={"wallet_header"}>
                             <span>{t("balance")}</span>
                             <Image
                                 className="wallet_header__icon"
                                 src="/img/a.png"
                                 alt="question"
-                                onClick={() => modalHandler(WalletEnum.Balance)}
                                 width={15}
                                 height={15}
                             />
@@ -249,14 +251,16 @@ const WalletCard = (props: { userMoney: Wallet }) => {
                             <span>{userMoney.score || 0.0}</span>
                         </div>
                     </div>
-                    <div className={"wallet_right_content"}>
+                    <div
+                        className={"wallet_right_content"}
+                        onClick={() => modalHandler(WalletEnum.Bonus)}
+                    >
                         <div className={"wallet_header"}>
                             {t("bonus")}
                             <Image
                                 className="wallet_header__icon"
                                 src="/img/a.png"
                                 alt="question"
-                                onClick={() => modalHandler(WalletEnum.Bonus)}
                                 width={15}
                                 height={15}
                             />
@@ -266,7 +270,10 @@ const WalletCard = (props: { userMoney: Wallet }) => {
                             <span>{userMoney.point || 0.0}</span>
                         </div>
                     </div>
-                    <div className={"wallet_left_border"} onClick={() => walletHandler("free")}>
+                    <div
+                        className={"wallet_left_border"}
+                        onClick={() => modalHandler(WalletEnum.Free)}
+                    >
                         <div className={"wallet_header"}>
                             {t("free")}
                             <Image
@@ -275,10 +282,6 @@ const WalletCard = (props: { userMoney: Wallet }) => {
                                 alt="question"
                                 width={15}
                                 height={15}
-                                onClick={(e) => {
-                                    e.stopPropagation();
-                                    modalHandler(WalletEnum.Free);
-                                }}
                             />
                         </div>
                         <div className="num">
@@ -286,17 +289,16 @@ const WalletCard = (props: { userMoney: Wallet }) => {
                             <span>{userMoney.free_score || 0.0}</span>
                         </div>
                     </div>
-                    <div className={"wallet_right_content"} onClick={() => walletHandler("replay")}>
+                    <div
+                        className={"wallet_right_content"}
+                        onClick={() => modalHandler(WalletEnum.Replay)}
+                    >
                         <div className={"wallet_header"}>
                             {t("replay")}
                             <Image
                                 className="wallet_header__icon"
                                 src="/img/a.png"
                                 alt="question"
-                                onClick={(e) => {
-                                    e.stopPropagation();
-                                    modalHandler(WalletEnum.Replay);
-                                }}
                                 width={15}
                                 height={15}
                             />