From a32ee6c28143b76c14e32c91c63d0e21ce7c67fe Mon Sep 17 00:00:00 2001 From: al Date: Wed, 9 Oct 2024 16:59:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/login/page.js | 64 +++++++++++++++++++++++++++++++----- components/OwnInput/index.js | 42 +++++++++++++++++++++++ 2 files changed, 98 insertions(+), 8 deletions(-) create mode 100644 components/OwnInput/index.js diff --git a/app/login/page.js b/app/login/page.js index 1509965..3efcd14 100644 --- a/app/login/page.js +++ b/app/login/page.js @@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from "react"; import { - Input, + // Input, Button, Swiper, Tabs, @@ -20,6 +20,7 @@ import { connect } from "react-redux"; import { cryptoPassword } from "@/utils/crypto"; import requireAPI from "@/utils/requireAPI"; import { signOut, signIn, checkAuth } from "@/utils/auth"; +import OwnInput from "@/components/OwnInput"; /* params格式: { @@ -278,7 +279,7 @@ function Login({ handleLogin }) {

+{loginInfo.regionCode}

- */} + { + setLoginInfo({ + ...loginInfo, + mobilePhone: value, + }); + }} + value={loginInfo.mobilePhone} /> @@ -301,7 +317,7 @@ function Login({ handleLogin }) {

验证码

- setVeriCode(value)} value={veriCode} @@ -311,6 +327,14 @@ function Login({ handleLogin }) { "--placeholder-color": "#FFFFFF80", "--font-size": "16px", }} + /> */} +