Explorar o código

fix:增加横向超出隐藏

ansoni hai 2 meses
pai
achega
11980ed3e4

+ 10 - 21
.env.local

@@ -1,24 +1,13 @@
-# 环境
 #baseurl
-# NEXT_PUBLIC_BASE_URL=http://192.168.0.71:8800
-NEXT_PUBLIC_BASE_URL=http://192.168.0.84:8800
-# NEXT_PUBLIC_BASE_URL=https://3rd-api.tiktokjakjkl.icu
+NEXT_PUBLIC_BASE_URL=https://hk-api.tiktokjakjkl.icu
 #share link
-NEXT_PUBLIC_SHARE_URL=http://192.168.0.84:3000
-
+NEXT_PUBLIC_SHARE_URL=https://hk-site.tiktokjakjkl.icu
 #firebase
-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
+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

+ 2 - 0
next.config.mjs

@@ -38,6 +38,8 @@ const nextConfig = {
             "next-themes",
             "react",
             "react-dom",
+            "swiper",
+            "zustand",
         ],
     },
     images: {

+ 0 - 1
src/app/[locale]/(TabBar)/[[...share]]/@actionWidget/Service.tsx

@@ -46,7 +46,6 @@ const SlotSection: FC<SlotSectionProps> = ({ onDestory }) => {
     const { data: slots, run: slotRun } = useRequest<any, any>(getSlots, {
         pollingInterval: 2000,
         pollingErrorRetryCount: 1,
-        pollingWhenHidden: false,
     });
     const slotHandler = () => {
         slotsRef.current?.onOpen(slots);

+ 0 - 1
src/app/[locale]/(TabBar)/profile/component/ItemCom/index.tsx

@@ -52,7 +52,6 @@ const ItemCom: FC<ItemComProps> = ({ type = "login" }) => {
     }));
     const { data: cashback } = useRequest<any, any>(getCashBackApi, {
         pollingErrorRetryCount: 1,
-        pollingWhenHidden: false,
     });
 
     const max = cashback?.rules.reduce(

+ 0 - 2
src/app/[locale]/(TabBar)/profile/page.tsx

@@ -25,7 +25,6 @@ const getVipApi = async () => {
 const Profile = () => {
     const { data: userInfo } = useRequest<any, any>(userInfoApi, {
         pollingErrorRetryCount: 1,
-        pollingWhenHidden: false,
     });
     const { data: userMoney } = useRequest<any, any>(getUserMoneyApi, {
         pollingErrorRetryCount: 1,
@@ -33,7 +32,6 @@ const Profile = () => {
     });
     const { data: userVip } = useRequest<any, any>(getVipApi, {
         pollingErrorRetryCount: 1,
-        pollingWhenHidden: false,
     });
 
     return (

+ 0 - 1
src/app/[locale]/(doings)/cashWheel/CashWheelClient.tsx

@@ -645,7 +645,6 @@ const Wheel: FC<Props> = (props) => {
     const { run, cancel } = useRequest<any, any>(setWheel, {
         // pollingInterval: 5000,
         pollingErrorRetryCount: 1,
-        pollingWhenHidden: false,
     });
     return (
         <>

+ 0 - 2
src/app/[locale]/affiliate/summary/page.tsx

@@ -235,7 +235,6 @@ const App: FC<Props> = (props) => {
 
     const { data: todayData } = useRequest(getUserMoneyHandler, {
         pollingInterval: TIME,
-        pollingWhenHidden: true,
         pollingErrorRetryCount: 3,
         staleTime: 5000,
         refreshDeps: [token],
@@ -280,7 +279,6 @@ const App: FC<Props> = (props) => {
 
     const { data: commissionData, run: commissionRun } = useRequest(getCommission, {
         pollingInterval: TIME,
-        pollingWhenHidden: true,
         pollingErrorRetryCount: 3,
         staleTime: 5000,
     });

+ 0 - 1
src/app/[locale]/providers.tsx

@@ -97,7 +97,6 @@ const StopServiceClient = () => {
     const { data: isSuspension } = useRequest(getStopServiceApi, {
         pollingInterval: 10000,
         pollingErrorRetryCount: 3,
-        pollingWhenHidden: false,
     });
 
     return (

+ 1 - 0
src/app/globals.scss

@@ -94,6 +94,7 @@ body {
 .main-header {
     height: calc(100% - $-header-height);
     overflow-y: scroll;
+  overflow-x: hidden;
 }
 
 input {

+ 0 - 2
src/components/Footer/index.tsx

@@ -84,7 +84,6 @@ const Footer: FC = () => {
         pollingInterval: 10000,
         manual: true,
         pollingErrorRetryCount: 3,
-        pollingWhenHidden: false,
         onSuccess: (data) => {
             setNotices(data?.data || [], data?.summery.unread || 0);
             setPromotionCount(data.summery.promotion_count || 0);
@@ -103,7 +102,6 @@ const Footer: FC = () => {
 
     const { run: walletRun } = useRequest(getUserMoneyApi, {
         pollingInterval: 5000,
-        pollingWhenHidden: true,
         pollingErrorRetryCount: 3,
         staleTime: 5000,
         manual: true,

+ 0 - 1
src/components/ModalPopup/ActivityModal/index.tsx

@@ -17,7 +17,6 @@ const ActivityMask = () => {
 
     const { run, cancel } = useRequest(getUserMoneyApi, {
         pollingInterval: 5000,
-        pollingWhenHidden: true,
         pollingErrorRetryCount: 3,
         staleTime: 5000,
         onError: (error) => {},