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
97a5735d
Commit
97a5735d
authored
Dec 14, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
e6d876cd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
39 deletions
+31
-39
src/router/index.js
src/router/index.js
+12
-10
src/router/index/camp.js
src/router/index/camp.js
+9
-11
src/router/index/personalInfo.js
src/router/index/personalInfo.js
+3
-5
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+7
-13
No files found.
src/router/index.js
View file @
97a5735d
...
...
@@ -63,15 +63,15 @@ const routes = [{
component
:
()
=>
import
(
'
v/index/recruit/Index.vue
'
)
},
{
path
:
"
/404
"
,
name
:
"
notFound
"
,
component
:
()
=>
import
(
'
v/index/notFound.vue
'
),
},
{
path
:
"
*
"
,
// 此处需特别注意置于最底部
redirect
:
"
/404
"
}
//
{
//
path: "/404",
//
name: "notFound",
//
component: () =>
//
import('v/index/notFound.vue'),
//
}, {
//
path: "*", // 此处需特别注意置于最底部
//
redirect: "/404"
//
}
]
...
...
@@ -160,7 +160,7 @@ function checkCam(code, cb) {
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// console.log(next, 'next
')
console
.
log
(
to
,
'
to
'
)
let
toLogin
=
"
/login
"
,
toRegister
=
"
/register
"
,
...
...
@@ -191,6 +191,8 @@ router.beforeEach((to, from, next) => {
});
}
else
{
code
=
to
.
params
.
code
?
to
.
params
.
code
:
to
.
query
.
code
;
// console.log(code);
//return next();
let
token
=
window
.
localStorage
.
getItem
(
"
index-token
"
+
code
);
if
(
!
token
)
{
checkCam
(
code
,
(
res
)
=>
{
...
...
src/router/index/camp.js
View file @
97a5735d
...
...
@@ -7,23 +7,21 @@ export default [{
}
},
{
path
:
'
/
homework
'
,
path
:
'
homework
'
,
name
:
'
index-homework
'
,
component
:
()
=>
import
(
'
v/index/camp/Homework.vue
'
),
meta
:
{
title
:
'
营地作业
'
}
},
children
:
[
{
path
:
'
/refer
'
,
name
:
'
refer
'
,
{
path
:
'
/homework
/refer
'
,
name
:
'
homework-
refer
'
,
component
:
()
=>
import
(
'
v/index/camp/homework/refer.vue
'
),
meta
:
{
title
:
'
提交作业
'
},
},
]
},
{
path
:
'
/certificate
'
,
name
:
'
index-certificate
'
,
...
...
src/router/index/personalInfo.js
View file @
97a5735d
export
default
[{
path
:
'
/personalInfo
'
,
name
:
'
index-personalInfo
'
,
component
:
()
=>
import
(
/* webpackChunkName: "login" */
'
v/index/Info/personalInfo.vue
'
),
component
:
()
=>
import
(
'
v/index/Info/personalInfo.vue
'
),
meta
:
{
title
:
'
个人资料
'
}
...
...
@@ -9,11 +9,9 @@ export default [{
{
path
:
'
/password
'
,
name
:
'
index-password
'
,
component
:
()
=>
import
(
/* webpackChunkName: "reset" */
'
v/index/Info/password.vue
'
),
component
:
()
=>
import
(
'
v/index/Info/password.vue
'
),
meta
:
{
title
:
'
修改密码
'
}
},
]
\ No newline at end of file
]
src/views/index/camp/Index.vue
View file @
97a5735d
...
...
@@ -28,13 +28,7 @@
</div>
<div
class=
"camp_right"
ref=
"rightBox"
>
<router-view
@
getStatus=
"getStatus"
/>
<router-view
@
getStatus=
"getStatus"
/>
</div>
</div>
</div>
...
...
@@ -47,9 +41,9 @@
import
Cookie
from
"
js-cookie
"
;
import
Header
from
"
@/components/index/SignUp/Header.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
svg1
from
'
@/assets/img/signUp/icon.svg
'
;
import
svg2
from
'
@/assets/img/signUp/icon-1.svg
'
;
import
svg3
from
'
@/assets/img/signUp/icon-2.svg
'
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
svg3
from
"
@/assets/img/signUp/icon-2.svg
"
;
export
default
{
name
:
"
campIndex
"
,
...
...
@@ -69,19 +63,19 @@ export default {
id
:
"
0
"
,
desc
:
"
营地报名
"
,
icon
:
"
icon-icon1
"
,
url
:
svg1
url
:
svg1
,
},
{
id
:
"
1
"
,
desc
:
"
营地作业
"
,
icon
:
"
icon-icon-1
"
,
url
:
svg2
url
:
svg2
,
},
{
id
:
"
2
"
,
desc
:
"
营地证书
"
,
icon
:
"
icon-icon-2
"
,
url
:
svg3
url
:
svg3
,
},
],
...
...
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