Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
Europa-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f023f366
authored
Jan 14, 2025
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
注册登录调整
parent
83d8ff81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
pages/login/index.tsx
pages/login/index.tsx
View file @
f023f366
...
...
@@ -196,7 +196,7 @@ const Page = () => {
<
span
className=
{
`${style.typeButton} ${style.cursorPointer} ${(loginType === '2') && style.typeButtonChoosen}`
}
onClick=
{
()
=>
handleTypeChange
(
'2'
)
}
>
免密登录
/注册
免密登录
</
span
>
</
div
>
<
form
onSubmit=
{
handleSubmit
}
>
...
...
@@ -219,9 +219,7 @@ const Page = () => {
</
Link
>
</
div
>
<
button
type=
"submit"
className=
{
style
.
loginButton
}
>
登录
</
button
>
<
div
className=
{
style
.
registerButton
}
>
<
Link
href=
"/reg"
className=
{
style
.
cursorPointer
}
>
立即注册
</
Link
>
</
div
>
</>
)
:
(
<>
...
...
@@ -238,7 +236,7 @@ const Page = () => {
<
input
type=
"text"
value=
{
code
}
className=
{
style
.
registerInput
}
placeholder=
'请输入短信验证码'
onChange=
{
handleCodeChange
}
required
/>
<
button
className=
{
codeText
==
'发送验证码'
?
`${style.codeButton }`
:
`${style.codeButton } ${style.dis}`
}
onClick=
{
handleCodeSend
}
>
{
codeText
}
</
button
>
</
div
>
<
div
className=
{
style
.
registerTips
}
>
未注册的手机号将自动完成注册
</
div
>
{
/* <div className={style.registerTips}>未注册的手机号将自动完成注册</div> */
}
{
showMsg
&&
(
<>
<
p
className=
{
style
.
showMsg
}
>
{
msg
}
</
p
>
...
...
@@ -253,6 +251,9 @@ const Page = () => {
<
button
type=
"submit"
className=
{
style
.
registerLoginButton
}
>
登录
</
button
>
</>
)
}
<
div
className=
{
style
.
registerButton
}
>
<
Link
href=
"/reg"
className=
{
style
.
cursorPointer
}
>
去注册
</
Link
>
</
div
>
</
form
>
</
div
>
{
showRule
&&
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment