Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
ddfd31db
Commit
ddfd31db
authored
Oct 14, 2021
by
wuwangwolihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路由跳转修改
parent
2a9d7b5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
32 deletions
+52
-32
src/components/index/SignUp/invitation.vue
src/components/index/SignUp/invitation.vue
+12
-4
src/router/index.js
src/router/index.js
+29
-28
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+11
-0
No files found.
src/components/index/SignUp/invitation.vue
View file @
ddfd31db
...
...
@@ -7,10 +7,10 @@
</div>
<div>
<div
class=
"code flex"
>
<el-input
v-model=
"input"
></el-input>
<el-input
v-model=
"input"
></el-input>
<el-input
v-model=
"input"
></el-input>
<el-input
v-model=
"input"
></el-input>
<el-input
v-model=
"input
1
"
></el-input>
<el-input
v-model=
"input
2
"
></el-input>
<el-input
v-model=
"input
3
"
></el-input>
<el-input
v-model=
"input
4
"
></el-input>
</div>
<div
class=
"errorCode"
>
该邀请码无效,请输入正确的邀请码。
</div>
</div>
...
...
@@ -30,6 +30,14 @@
/* eslint-disable */
export
default
{
name
:
"
Invitation
"
,
data
(){
return
{
input1
:
null
,
input2
:
null
,
input3
:
null
,
input4
:
null
,
}
}
};
</
script
>
...
...
src/router/index.js
View file @
ddfd31db
...
...
@@ -7,39 +7,40 @@ import indexCamp from './index/camp'
Vue
.
use
(
VueRouter
)
const
routes
=
[{
path
:
'
/
'
,
meta
:
{
title
:
'
招生简章
'
const
routes
=
[
{
path
:
'
/
'
,
meta
:
{
title
:
'
招生简章
'
},
component
:
()
=>
import
(
'
v/index/recruit/Index.vue
'
)
},
component
:
()
=>
import
(
'
v/index/recruit/Index.vue
'
)
},
{
path
:
'
/login
'
,
name
:
'
loginIndex
'
,
meta
:
{
title
:
'
登录
'
{
path
:
'
/login
'
,
name
:
'
loginIndex
'
,
meta
:
{
title
:
'
登录
'
},
component
:
()
=>
import
(
'
v/index/login/Index.vue
'
),
children
:
[...
indexLogin
]
},
component
:
()
=>
import
(
'
v/index/login/Index.vue
'
),
children
:
[...
indexLogin
]
},
{
path
:
'
/cerificate
'
,
name
:
'
cerificateIndex
'
,
meta
:
{
title
:
'
营地报名
'
},
redirect
:
'
/cerificate/signUp
'
,
component
:
()
=>
import
(
'
v/index/camp/Index.vue
'
),
children
:
[...
indexCamp
]
}
{
path
:
'
/:cerificate
'
,
name
:
'
cerificateIndex
'
,
meta
:
{
title
:
'
营地报名
'
},
// redirect: '/cerificate/signUp',
component
:
()
=>
import
(
'
v/index/camp/Index.vue
'
),
children
:
[...
indexCamp
]
}
]
const
originalPush
=
VueRouter
.
prototype
.
push
VueRouter
.
prototype
.
push
=
function
push
(
location
)
{
VueRouter
.
prototype
.
push
=
function
push
(
location
)
{
return
originalPush
.
call
(
this
,
location
).
catch
(
err
=>
err
)
}
...
...
src/views/index/camp/SignUp.vue
View file @
ddfd31db
...
...
@@ -41,6 +41,17 @@ export default {
this
.
type
=
this
.
$route
.
params
.
type
;
console
.
log
(
this
.
$route
);
},
watch
:{
'
$route
'
:
{
handler
(
val
)
{
const
that
=
this
;
if
(
val
.
path
.
indexOf
(
'
signUp
'
)
!=-
1
){
that
.
type
=
val
.
params
.
type
;
}
},
deep
:
true
}
}
};
</
script
>
...
...
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