diff --git a/app/globals.css b/app/globals.css index b925772..c96b813 100644 --- a/app/globals.css +++ b/app/globals.css @@ -18,7 +18,11 @@ body{ --background-end-rgb: 0, 0, 0; } } */ - +@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) { + select:focus, textarea:focus, input:focus { + font-size: 16px !important; + } +} .custom-tabs .adm-tabs { border: none; --active-line-color: #ff8383; diff --git a/app/layout.js b/app/layout.js index 82cf7f8..bb28b29 100644 --- a/app/layout.js +++ b/app/layout.js @@ -46,6 +46,7 @@ export default function RootLayout({ children }) { type="image/x-icon" > + -
@@ -312,6 +315,7 @@ function Login({ handleLogin }) { placeholder="请输入手机号" // disabled={true} type="number" + name="phone_number" maxLength={11} onChange={(value) => setLoginInfo({ ...loginInfo, mobilePhone: value }) @@ -332,6 +336,7 @@ function Login({ handleLogin }) { setLoginInfo({ ...loginInfo, password: value }) } @@ -345,7 +350,7 @@ function Login({ handleLogin }) {
1.在浏览器中打开主界面,点击浏览器中的[分享]按钮。
2.打开分享弹框后,点击[添加到主屏幕]。
3.打开添加到主屏幕弹框后,点击[添加]按钮即可成功添加到主屏幕。
- {console.log(mobilePhone,"cccc")} + {console.log(mobilePhone, "cccc")} {searchParams.get("is_enabled") == "0" ? "设置密码" : mobilePhone @@ -171,7 +178,7 @@ export default function EditPassword() {
+{regionCode}
{ diff --git a/components/WithAuth/index.js b/components/WithAuth/index.js index 102b50c..7d4c9a6 100644 --- a/components/WithAuth/index.js +++ b/components/WithAuth/index.js @@ -1,11 +1,13 @@ import { checkAuth } from "@/utils/auth"; -import { useRouter, usePathname } from "next/navigation"; +import { useRouter, usePathname, useSearchParams } from "next/navigation"; import { useEffect } from "react"; import { get } from "@/utils/storeInfo"; import { Toast } from "antd-mobile"; export default function WithAuth(WrappedComponent) { const router = useRouter(); + const pathname = usePathname(); + const searchParams = useSearchParams(); useEffect(() => { if(!pathname.includes("webView") && !pathname.includes("login") ){ @@ -35,7 +37,7 @@ export default function WithAuth(WrappedComponent) { } } } - } else { + } else if(!searchParams.get("forgetPassword")) { router.push("/login"); } }; diff --git a/utils/requireAPI.js b/utils/requireAPI.js index 8ebc914..ebbb91f 100644 --- a/utils/requireAPI.js +++ b/utils/requireAPI.js @@ -24,7 +24,7 @@ export default function customFetch(method, url, options = {}, mid) { newBody.mid = mid; } const body = JSON.stringify({ ...base, ...newBody }); - console.log("newBody", body); + // console.log("newBody", body); // 合并选项 const mergedOptions = { ...defaultOptions, body };