Sfoglia il codice sorgente

fix: 增加hk环境

Before 7 mesi fa
parent
commit
6406583931

+ 13 - 0
.env.hk

@@ -0,0 +1,13 @@
+#baseurl
+NEXT_PUBLIC_BASE_URL=https://hk-api.tiktokjakjkl.icu
+#share link
+NEXT_PUBLIC_SHARE_URL=https://hk-site.tiktokjakjkl.icu
+#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

+ 1 - 0
package.json

@@ -13,6 +13,7 @@
     "build:uat": "node scripts/swEnv.js .env.uat .env.local  && next build",
     "dev:third": "node scripts/swEnv.js .env.third .env.local  && next dev",
     "build:third": "node scripts/swEnv.js .env.third .env.local  && next build",
+    "build:hk": "node scripts/swEnv.js .env.hk .env.local  && next build",
     "start": "next start",
     "lint": "next lint",
     "build": "next build",

BIN
public/summary/SMS.png


BIN
public/summary/WhatsApp-nobg.png


+ 144 - 8
src/app/[locale]/(navbar)/cashWheel/CashWheelClient.tsx

@@ -1,10 +1,13 @@
 "use client";
 
 import Box from "@/components/Box";
+import { Link } from "@/i18n/routing";
 import { useUserInfoStore } from "@/stores/useUserInfoStore";
+import { copyText } from "@/utils/methods";
 import { LuckyWheel } from "@lucky-canvas/react";
 import { useCountDown } from "ahooks";
-import { Popup } from "antd-mobile";
+import { Popup, Toast } from "antd-mobile";
+import { useTranslations } from "next-intl";
 import Image from "next/image";
 import { useEffect, useRef, useState } from "react";
 import LotteryWheel from "./LotteryWheel";
@@ -277,18 +280,28 @@ const DrawContent = () => {
         </div>
     );
 };
-
+type Dtltype = "left" | "right";
 const Report = () => {
     const winListData = Array(500).fill("1");
+    const [activeTab, setActiveTab] = useState<Dtltype>("left");
+
+    const handler = (dtl: Dtltype) => {
+        setActiveTab(dtl);
+    };
     return (
         <div className={styles.report}>
             <div className={`${styles.vanTabs} ${styles.vanTabsLine}`}>
                 <div className={styles.vanTabsWrap}>
                     <div className={styles.vanTabsNav}>
-                        <div className={`${styles.vanTabItem} ${styles.vanTabAcrive}`}>
+                        <div className={`${styles.vanTabItem}`} onClick={() => handler("left")}>
                             Relatório
                         </div>
-                        <div className={`${styles.vanTabItem}`}>Minha Referencia</div>
+                        <div
+                            className={`${styles.vanTabItem} ${styles.vanTabAcriveLeft}`}
+                            onClick={() => handler("right")}
+                        >
+                            Minha Referencia
+                        </div>
                     </div>
                 </div>
                 <div className={styles.vanTabsContent}>
@@ -544,8 +557,44 @@ const CountdownClient = () => {
     );
 };
 const ShareClient = () => {
-    const handler = () => {};
     const [visible, setVisible] = useState(false);
+    const shareUrl = process.env.NEXT_PUBLIC_SHARE_URL as string;
+    const url = encodeURIComponent(`${shareUrl}`);
+    const text = encodeURIComponent(`Receba 100 BRL de graça,Pix SAQUE RÁPIDO`);
+    const t = useTranslations();
+    const SHARE_SOURCE = [
+        {
+            icon: "/summary/Facebook.png",
+            label: "Facebook",
+            shareUrl: `https://www.facebook.com/sharer/sharer.php?u=${url}&t=${text}`,
+        },
+        {
+            icon: "/summary/WhatsApp.png",
+            label: "WhatsApp",
+            shareUrl: `https://api.whatsapp.com/send?text=${text}`,
+        },
+        {
+            icon: "/summary/Telegram.png",
+            label: "Telegram",
+            shareUrl: `https://t.me/share/url?url=${url}&text=${text}`,
+        },
+        {
+            icon: "/summary/Twitter.png",
+            label: "Twitter",
+            shareUrl: `https://twitter.com/intent/tweet?text=${text}`,
+        },
+        {
+            icon: "/summary/Email.png",
+            label: "Email",
+            shareUrl: `mailto: ?&subject=&cc=&bcc=&body=${url}%0A${text}`,
+        },
+    ];
+
+    const copy = (text: string) => {
+        copyText(text);
+        Toast.show({ icon: "success", content: t("SummaryPage.copySuc"), maskClickable: false });
+    };
+
     return (
         <>
             <div className={"p-[0.1389rem]"}>
@@ -564,7 +613,6 @@ const ShareClient = () => {
                         >
                             <span className={""}>Compartilhe mais, saque mais rápido.</span>
                         </div>
-                        {/*  anniu */}
                         <div
                             className={"flex w-[0.4167rem] items-center pl-[0.0694rem]"}
                             onClick={() => setVisible(true)}
@@ -585,10 +633,98 @@ const ShareClient = () => {
                     setVisible(false);
                 }}
                 showCloseButton
-                bodyStyle={{ height: "30vh", background: "#fff" }}
+                bodyStyle={{ height: "2.9rem", background: "#fff" }}
             >
-                <div className={"p-[20px] text-[#000]"}>
+                <div className={"p-[0.1389rem] text-[#555555]"}>
                     <h1>1.Convide amlgos para ajudar com saques</h1>
+                    <div
+                        className={"mt-[0.1389rem] grid grid-cols-5 justify-center gap-[0.1389rem]"}
+                    >
+                        {SHARE_SOURCE.map((source, index) => {
+                            return (
+                                <a
+                                    href={source.shareUrl}
+                                    key={index}
+                                    target={"_blank"}
+                                    className={"flex flex-col items-center"}
+                                >
+                                    <Image src={source.icon} alt={"Mais"} width={70} height={70} />
+                                    <p className={"mt-[0.0347rem] text-[12px] text-[#808080]"}>
+                                        {source.label}
+                                    </p>
+                                </a>
+                            );
+                        })}
+                    </div>
+
+                    <div className={"mt-[0.0694rem]"}>
+                        <h1 className={"text-[14px]"}>
+                            Compartilhe este link de indicação com seus amigos
+                        </h1>
+                        <div
+                            className={
+                                "rounded-[3px] bg-[#f9f9f9] p-[0.0694rem] text-[#808080]" +
+                                " mt-[0.0347rem] flex items-center"
+                            }
+                        >
+                            <span className={"flex-1"}>{shareUrl}</span>
+                            <span
+                                id="copy"
+                                className={"text-[#40a1de]"}
+                                onClick={() => copy(shareUrl)}
+                            >
+                                {t("SummaryPage.Cópia")}
+                            </span>
+                        </div>
+                    </div>
+
+                    <div className={"mt-[0.0694rem]"}>
+                        <h1>2.Enviar convite para jogador aleatório ajudar</h1>
+
+                        <div
+                            className={
+                                "grid grid-cols-2 gap-[0.1389rem] text-[0.12rem] text-[#fff]" +
+                                " mt-[0.0694rem]"
+                            }
+                        >
+                            <Link
+                                href={"#"}
+                                className={
+                                    "flex items-center rounded-[0.0694rem] bg-[#10cb8c]" +
+                                    " p-[0.0694rem] text-[#fff]"
+                                }
+                            >
+                                <div className={"flex-1"}>
+                                    <p>Enviar Mensagem </p>
+                                    <p>no WhatsAPP</p>
+                                </div>
+                                <Image
+                                    src={"/summary/WhatsApp-nobg.png"}
+                                    alt={"whatsApp"}
+                                    width={40}
+                                    height={40}
+                                />
+                            </Link>
+                            <Link
+                                href={"sms:10086?body=message_body"}
+                                className={
+                                    "flex items-center rounded-[10px] bg-[#35b2fe]" +
+                                    " p-[0.0694rem] text-[#fff]"
+                                }
+                            >
+                                <div className={"flex-1"}>
+                                    <p>Enviar Mensagem </p>
+                                    <p>SMS</p>
+                                </div>
+                                <Image
+                                    src={"/summary/SMS.png"}
+                                    alt={"whatsApp"}
+                                    width={40}
+                                    height={40}
+                                />
+                            </Link>
+                        </div>
+                    </div>
                 </div>
             </Popup>
         </>

+ 59 - 28
src/app/[locale]/(navbar)/cashWheel/style.module.scss

@@ -33,14 +33,14 @@
         color: #fff;
         text-align: center
       }
-      
+
       .needCashNum {
           color: #6ddf39
       }
-    } 
-  
-    
-  
+    }
+
+
+
     .progress {
       width: 100%;
       margin: .11rem 0 .07rem;
@@ -78,9 +78,9 @@
         }
       }
     }
-    
 
-  
+
+
     .haveCash {
       display: -webkit-box;
       display: -ms-flexbox;
@@ -106,16 +106,16 @@
         font-weight: 700;
         margin-right: .12rem
       }
-    
+
     }
-  
+
     .noWithdraw,.haveCash {
       color: #fff;
       -webkit-box-pack: center;
       -ms-flex-pack: center;
       justify-content: center
     }
-  
+
     .needCash {
         height: .22rem;
         border-radius: .14rem;
@@ -129,12 +129,12 @@
         white-space: nowrap;
         width: 100%
     }
-  
+
     .needCashNum {
         font-family: "SWISSC-BT";
         margin: 0 .03rem
     }
-  
+
     .withdraw {
       width: .65rem;
       height: .2rem;
@@ -163,8 +163,8 @@
         margin-right: .03rem
       }
     }
-  
-   
+
+
   }
 
   .drawMain {
@@ -210,7 +210,7 @@
         animation: drawBgImg 20s linear infinite
     }
 
-   
+
     .position {
       position: absolute;
       left: 48%;
@@ -223,7 +223,7 @@
       z-index: 8;
       width: 28%
     }
-  
+
     .pointer {
       position: absolute;
       width: 96%;
@@ -254,7 +254,7 @@
       top: 50%;
       z-index: 5
     }
-    
+
     #draw {
         width: 100%;
         height: 100%;
@@ -331,25 +331,26 @@
       .vanTabsNav{
         overflow-x: auto;
         overflow-y: hidden;
-        -webkit-overflow-scrolling: touch
+        -webkit-overflow-scrolling: touch;
       }
-    
+
       .vanTabsNav::-webkit-scrollbar {
           display: none
       }
-    
+
       .vanTabsNav {
           position: relative;
           display: -webkit-box;
           display: -webkit-flex;
-          display: flex;
+          display: grid;
+          grid-template-columns: 1fr 1fr;
           background: transparent;
           -webkit-user-select: none;
           user-select: none;
-          
+
       }
       .vanTabItem{
-        background: #1f2125;
+        background: #17181b;
         color: #9c9c9c;
         font-size: 0.15rem;
         height:.45rem;
@@ -360,11 +361,41 @@
         align-items: center;
         justify-content: center;
         cursor: pointer;
+
         &:nth-child(2){
           flex:2;
         }
-        &.vanTabAcrive{
+
+        &.vanTabAcriveRight{
           color: #fff;
+          background: #1c1e21;
+          position: relative;
+          border-radius: 15px 0 0 0 ;
+          &:before{
+            content: '';
+            position: absolute;
+            width: 60px;
+            height: 60px;
+            background: radial-gradient(circle at 100%  100%, transparent 60px, #1c1e21 61px);
+            top: 0;
+            right: -60px;
+          }
+        }
+        &.vanTabAcriveLeft{
+          color: #fff;
+          border: 1px solid red;
+          background: #1c1e21;
+          position: relative;
+          border-radius:0 0 0 15px;
+          &:before{
+            content: '';
+            position: absolute;
+            width: 60px;
+            height: 60px;
+            background: radial-gradient(circle at 100%  0%, red 60px, #1c1e21 61px);
+            top: 0;
+            left: -60px;
+          }
         }
       }
 
@@ -378,7 +409,7 @@
           height:1.7rem;
           overflow: hidden;
         }
-        
+
         .winList {
           height: 100%;
           animation: smoothscroll 12.6s linear infinite;
@@ -452,7 +483,7 @@
                 border-bottom: none
               }
             }
-          } 
+          }
         }
       }
     }
@@ -479,7 +510,7 @@
           margin: .16rem 0
         }
       }
-    
+
     }
   }
 
@@ -488,7 +519,7 @@
 
 }
 
-    
+
 @-webkit-keyframes drawBgImg {
     0% {
         -webkit-transform: rotate(0deg);