Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
vite-integral
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a074805
authored
Aug 08, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交路由
1 parent
d77f801c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
src/router/routes.ts
src/views/login/register.vue
src/views/login/registerSuccess.vue
src/router/routes.ts
View file @
1a07480
...
@@ -37,6 +37,15 @@ const staticRoutes = Object.freeze([
...
@@ -37,6 +37,15 @@ const staticRoutes = Object.freeze([
}
}
},
},
{
{
name
:
'RegisterSuccess'
,
path
:
'/registerSuccess'
,
component
:
()
=>
import
(
'views/login/registerSuccess.vue'
),
meta
:
{
title
:
'注册成功'
,
backgroundColor
:
'#fff'
}
},
{
name
:
'Project'
,
name
:
'Project'
,
path
:
'/project'
,
path
:
'/project'
,
component
:
()
=>
import
(
'views/project/index.vue'
)
component
:
()
=>
import
(
'views/project/index.vue'
)
...
...
src/views/login/register.vue
View file @
1a07480
...
@@ -22,9 +22,12 @@ orm<template>
...
@@ -22,9 +22,12 @@ orm<template>
:rules=
"[{ required: true, message: '请输入持卡人姓名' }]"
/>
:rules=
"[{ required: true, message: '请输入持卡人姓名' }]"
/>
<div
class=
"form-explain"
>
持卡人姓名与姓名必须一致
</div>
<div
class=
"form-explain"
>
持卡人姓名与姓名必须一致
</div>
<div
class=
"form-submit"
>
<div
class=
"form-submit"
>
<van-button
round
block
color=
"#FB7034"
native-type=
"
submit
"
>
<van-button
round
block
color=
"#FB7034"
native-type=
"
onRegister
"
>
提交注册
提交注册
</van-button>
</van-button>
<van-button
round
block
color=
"#FB7034"
@
click=
"onRegister"
>
注册成功
</van-button>
</div>
</div>
</van-form>
</van-form>
</template>
</template>
...
@@ -44,7 +47,7 @@ const getCode = () => {
...
@@ -44,7 +47,7 @@ const getCode = () => {
}
}
const
onRegister
=
()
=>
{
const
onRegister
=
()
=>
{
router
.
go
(
-
2
)
router
.
push
(
'/registerSuccess'
)
}
}
</
script
>
</
script
>
...
...
src/views/login/registerSuccess.vue
0 → 100644
View file @
1a07480
File mode changed
Write
Preview
Markdown
is supported
Attach a file
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 post a comment