Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
77e00537
Commit
77e00537
authored
Jun 09, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增注册页步骤
parent
f76f8c29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
register.tsx
src/pages/user/register.tsx
+23
-26
No files found.
src/pages/user/register.tsx
View file @
77e00537
import
React
from
'react'
import
React
,
{
useState
}
from
'react'
import
{
Input
,
Form
}
from
'antd'
import
{
Input
,
Form
,
Steps
}
from
'antd'
import
styles
from
'./index.less'
import
globalStyles
from
'@/global.less'
import
cx
from
'classnames'
import
{
FormPage
}
from
'god'
import
{
FormPage
}
from
'god'
const
Step
=
Steps
.
Step
const
stepList
=
[
{
title
:
'填写信息'
,
key
:
'message'
},
{
title
:
'完善资料'
,
key
:
'over'
},
{
title
:
'等待审核'
,
key
:
'wait'
},
{
title
:
'注册成功'
,
key
:
'success'
},
]
const
UserRegistry
=
()
=>
{
const
UserRegistry
=
()
=>
{
const
[
current
,
setCurrent
]
=
useState
(
0
)
return
(
return
(
<
div
>
<
div
className=
{
cx
(
styles
.
register
,
globalStyles
.
lingxiBusinessContent1024
)
}
>
<
FormPage
<
h3
>
欢迎您注册数商云账号
</
h3
>
renderFormLists=
{
<
div
className=
{
styles
.
registerBox
}
>
[
<
Steps
current=
{
current
}
className=
{
styles
.
stepWrap
}
size=
'small'
>
{
{
type
:
'Input'
,
stepList
.
map
(
v
=>
<
Step
title=
{
v
.
title
}
key=
{
v
.
key
}
/>)
name
:
'demo'
,
}
size
:
'large'
,
</
Steps
>
},
</
div
>
{
type
:
'Input'
,
name
:
'fuck'
,
size
:
'large'
},
{
type
:
'Input'
,
name
:
'a'
,
size
:
'large'
},
]
}
>
</
FormPage
>
</
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