From e7886b717a6b480cc0f8f9d8c04a4b371c32426b Mon Sep 17 00:00:00 2001 From: al Date: Tue, 6 Aug 2024 21:20:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=B1=8F=E5=B9=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=92=8C=E6=B7=BB=E5=8A=A0=E4=B8=BB=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 9 ++++--- app/layout.js | 2 +- app/login/page.js | 8 +++++-- app/my/page.js | 2 +- app/page.js | 42 +++++++++++++-------------------- app/space/page.js | 12 +++++----- components/AddToHome/index.jsx | 42 +++++++++++++++++++++++++++++++++ components/Photos/index.js | 2 +- public/icons/ios_share.png | Bin 0 -> 3611 bytes public/images/addToHome.png | Bin 0 -> 4768 bytes utils/requireAPI.js | 2 +- 11 files changed, 78 insertions(+), 43 deletions(-) create mode 100644 components/AddToHome/index.jsx create mode 100644 public/icons/ios_share.png create mode 100644 public/images/addToHome.png diff --git a/app/globals.css b/app/globals.css index b9e4a21..63b70d9 100644 --- a/app/globals.css +++ b/app/globals.css @@ -3,18 +3,17 @@ @tailwind utilities; body{ color:#fff; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); + /* padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); */ } footer{ /* Fallback for non-iOS devices */ bottom: 0; - /* iOS 11.0+ */ - bottom: constant(safe-area-inset-bottom); + padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.2+ */ - bottom: env(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); } /* :root { --foreground-rgb: 0, 0, 0; diff --git a/app/layout.js b/app/layout.js index e6b4f5a..c7bc061 100644 --- a/app/layout.js +++ b/app/layout.js @@ -74,7 +74,7 @@ export default function RootLayout({ children }) { {/* */} {/* */} {/* */} diff --git a/app/login/page.js b/app/login/page.js index 37be862..fef53df 100644 --- a/app/login/page.js +++ b/app/login/page.js @@ -15,7 +15,7 @@ import { useRouter } from "next/navigation"; import styles from "./index.module.scss"; import { JSEncrypt } from "jsencrypt"; import { handleLogin } from "@/store/actions"; -import { saveUserInfo, get } from "@/utils/storeInfo"; +import { saveUserInfo, get, save } from "@/utils/storeInfo"; import { connect } from "react-redux"; import { cryptoPassword } from "@/utils/crypto"; import requireAPI from "@/utils/requireAPI"; @@ -169,7 +169,11 @@ function Login({ handleLogin }) { saveUserInfo(data, mobilePhone, regionCode); signIn(data); handleLogin({ isSignin: true, userToken: data.data.token }); - + if(get("firstLogin")==null){ + save("firstLogin",1) + }else{ + save("firstLogin",0) + } router.push( !data?.data?.is_enabled && type != "password" ? "/my/setting/editPassword?is_enabled=" + data?.data?.is_enabled diff --git a/app/my/page.js b/app/my/page.js index 4566822..c8ac908 100644 --- a/app/my/page.js +++ b/app/my/page.js @@ -34,7 +34,7 @@ const My = () => { setUserInfo({ ...oldUserInfo, ...data.data,...account.data.account }); }; return ( -
diff --git a/app/page.js b/app/page.js index b692dae..a9d44a3 100644 --- a/app/page.js +++ b/app/page.js @@ -18,8 +18,8 @@ import Link from "next/link"; import requireAPI from "@/utils/requireAPI"; import Empty from "@/components/Empty"; import { get } from "@/utils/storeInfo"; -import { useSearchParams } from "next/navigation"; import StreamerNavigator from "@/components/StreamerNavigator"; +import AddToHome from "@/components/AddToHome"; const variables = { "@active-line-color": "#f00", // 将主题色改为红色 }; @@ -28,22 +28,15 @@ const tabItems = [ { key: "follow", title: "关注" }, ]; -// const scrollHeight = 700; -// const scrollHeight = window.innerHeight-126 export default function Home() { const recommPostRef = useRef(); const followPostRef = useRef(); - const searchParams = useSearchParams(); const swiperRef = useRef(null); const [activeIndex, setActiveIndex] = useState(0); + const [scrollHeight, setScrollHeight] = useState(0); - // 获取屏幕高度 - // const scrollHeight = 600; - useEffect(() => { - setScrollHeight(window.innerHeight); - // getData(0) - }, []); + const childrenFunc = () => { if (!activeIndex) { recommPostRef.current?.doRefresh(); @@ -52,10 +45,7 @@ export default function Home() { } }; return ( -
+
+
); } @@ -186,8 +177,8 @@ const RecommPostList = forwardRef(({ scrollHeight }, ref) => { ))} {commenPostList?.length == 0 && !loading && (
@@ -208,8 +199,8 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => { const [ids, setIds] = useState([]); useEffect(() => { getFollowIds().then((res) => { - setIds(res) - getFollowPostList(res,0) + setIds(res); + getFollowPostList(res, 0); }); }, []); useImperativeHandle( @@ -227,10 +218,10 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => { // }); // throw new Error("刷新失败"); // getRecommPostList(1); - await getFollowPostList(ids,0); + await getFollowPostList(ids, 0); } async function loadMore() { - await getFollowPostList(ids,offset); + await getFollowPostList(ids, offset); // const newList = [...followPostList, ...list]; // setFollowPostList(newList); } @@ -247,8 +238,7 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => { ); return data; }; - const getFollowPostList = async (data,offset) => { - + const getFollowPostList = async (data, offset) => { if (data.data.list.length > 0) { //查关注主播展示资料 const followsResponse = await requireAPI( @@ -264,7 +254,7 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => { } ); // debugger; - console.log("offset",followsResponse.data.offset) + console.log("offset", followsResponse.data.offset); setOffset(followsResponse.data.offset); setHasMore(followsResponse.data.more); setLoading(false); @@ -275,7 +265,7 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => { position: "top", }); } else { - setFollowPostList(old=>[...old,...followsResponse.data.list]); + setFollowPostList((old) => [...old, ...followsResponse.data.list]); } } else { setLoading(false); @@ -302,8 +292,8 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => { ))} {!followPostList?.length && (
diff --git a/app/space/page.js b/app/space/page.js index 53ee7dc..803d472 100644 --- a/app/space/page.js +++ b/app/space/page.js @@ -130,8 +130,8 @@ export default function Space() { } return (
) : (
@@ -251,8 +251,8 @@ export default function Space() { ) : (
diff --git a/components/AddToHome/index.jsx b/components/AddToHome/index.jsx new file mode 100644 index 0000000..d2096c4 --- /dev/null +++ b/components/AddToHome/index.jsx @@ -0,0 +1,42 @@ +"use client"; + +import React,{useState,useEffect} from "react"; +import { Image ,Toast} from "antd-mobile"; +import { get,save } from "@/utils/storeInfo"; +export default function AddToHome() { + const [firstLogin, setFirstLogin] = useState("0"); + useEffect(() => { + if(!(("standalone" in window.navigator) && window.navigator.standalone) + ){ + setFirstLogin(get("firstLogin")) + } + + }, []); + return ( + firstLogin=="1"?
{save("firstLogin", 0);setFirstLogin("0")}} + > +
+ 点击 + + 添加到主屏幕 +
+ +
:null + ); +} diff --git a/components/Photos/index.js b/components/Photos/index.js index 2ed1efd..703d992 100644 --- a/components/Photos/index.js +++ b/components/Photos/index.js @@ -101,7 +101,7 @@ export default function Photos({ title: "", content: (
-
+
$2ANb$qtw_+jpWTz zRF;%^Q(3Y#mZU__-wMoYwvg&s&X6 zE|BIyBPWusM#hsJ+PluYK(%E)yTvj^I=&rQr=)QP`vIxXEQCT-AH+yYndTe_!8jqq z`>%Y>)6LLyvCoiZrU3H!!BHM1(@{5n3{|K6IbT^*%fTq!>}^{4r}yVlQtjBRzC*SY zi_bynT4;bsS9vx#O4PWs9)Y?3nS>-brP!mI<=oNJ&-c*eNgzerBXo1U3IZcIUvypD z!JfIB*Y8KSL=t!^mOJ-kGEiKo?0$C?iVRssMSg{^W(LWoAz zu<1iNHu$blFI)r8V>=YRHUgHzZpNv1wrA{)6b!Jz4KI$Ft)WE%DD4(%wO$C6|3A-|i524&t6Ue?YxY_4_uCo?ANuMebnS z8E_~5eWj?Jtkigr5Mn=(6$^0?5nC-UqLieX^Hn(^*OIAh1jY6RiMp<;#0KiSlfrT2 zeDk+VU?YGP!)&tBwbL`89YqboQ3d;c4pNd)ws%xHymr4oGpyRG$=T$Xnj1C{-rfL4 zNWN8R!;&8aV%A6Cv4p6jSjQGR|kIoUHsBj9A0)BeTS>fRk#B2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API.js index bb1072b..561a2a0 100644 --- a/utils/requireAPI.js +++ b/utils/requireAPI.js @@ -24,7 +24,7 @@ export default function customFetch(method, url, options = {}, needMid) { newBody.mid = mid; } const body = JSON.stringify({ ...base, ...newBody }); - console.log("newBody", body,url); + // console.log("newBody", body,url); // 合并选项 const mergedOptions = { ...defaultOptions, body };