Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
f4a85815
Commit
f4a85815
authored
Dec 09, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 瑞云登录页添加验证码登录
parent
eeceeadc
Pipeline
#94476
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.js
src/pages/user/login/template/project/ruiyun/index.js
+7
-3
No files found.
src/pages/user/login/template/project/ruiyun/index.js
View file @
f4a85815
...
@@ -53,6 +53,8 @@ const imgList = [
...
@@ -53,6 +53,8 @@ const imgList = [
},
},
];
];
const
Login
=
forwardRef
((
props
,
_ref
)
=>
{
const
Login
=
forwardRef
((
props
,
_ref
)
=>
{
const
isValidate
=
(
window
?.
globalConfig
?.
isVerification
||
0
)
*
1
===
1
;
// const isValidate = true;
const
sliVerify
=
useRef
();
const
sliVerify
=
useRef
();
const
loginFormRef
=
useRef
();
const
loginFormRef
=
useRef
();
const
formRef
=
useRef
(
null
);
const
formRef
=
useRef
(
null
);
...
@@ -73,7 +75,9 @@ const Login = forwardRef((props, _ref) => {
...
@@ -73,7 +75,9 @@ const Login = forwardRef((props, _ref) => {
/* eslint-disable */
/* eslint-disable */
action
&&
action
&&
(
type
===
'Account'
(
type
===
'Account'
?
action
.
loginHandler
(
values
.
userName
,
values
.
password
,
null
,
autoLogin
,
sliVerify
)
?
isValidate
?
action
.
loginHandlerValidate
(
values
.
userName
,
values
.
password
,
null
,
autoLogin
,
'none'
,
values
?.
validate
)
:
action
.
loginHandler
(
values
.
userName
,
values
.
password
,
null
,
autoLogin
,
sliVerify
)
:
type
===
'Mobile'
:
type
===
'Mobile'
?
action
.
phoneLoginFormHandler
(
values
.
mobile
,
values
.
captcha
)
?
action
.
phoneLoginFormHandler
(
values
.
mobile
,
values
.
captcha
)
:
null
);
:
null
);
...
@@ -135,7 +139,7 @@ const Login = forwardRef((props, _ref) => {
...
@@ -135,7 +139,7 @@ const Login = forwardRef((props, _ref) => {
updateLoginMode
:
props
.
updateLoginMode
,
updateLoginMode
:
props
.
updateLoginMode
,
welcome
:
null
,
welcome
:
null
,
};
};
return
<
Account
{...
params
}
/>
;
return
<
Account
{...
params
}
isValidate
=
{
isValidate
}
/>
;
};
};
/* eslint-disable */
/* eslint-disable */
...
@@ -276,7 +280,7 @@ const Login = forwardRef((props, _ref) => {
...
@@ -276,7 +280,7 @@ const Login = forwardRef((props, _ref) => {
<
div
className
=
{
classnames
(
styles
[
'wrapper'
])}
>
<
div
className
=
{
classnames
(
styles
[
'wrapper'
])}
>
<
QueueAnim
type
=
"scale"
duration
=
{
1000
}
>
<
QueueAnim
type
=
"scale"
duration
=
{
1000
}
>
<
div
key
=
{
'innerwrapper'
}
className
=
{
classnames
(
styles
[
'inner-wrapper'
])}
>
<
div
key
=
{
'innerwrapper'
}
className
=
{
classnames
(
styles
[
'inner-wrapper'
])}
>
<
div
className
=
{
styles
[
'inner-center'
]}
>
<
div
className
=
{
styles
[
'inner-center'
]}
style
=
{{
height
:
isValidate
?
'400px'
:
''
}}
>
<
div
className
=
{
styles
[
'welcome-title'
]}
>
<
div
className
=
{
styles
[
'welcome-title'
]}
>
<
img
src
=
{
icon
}
/
>
<
img
src
=
{
icon
}
/
>
<
/div
>
<
/div
>
...
...
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