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
1730429d
Commit
1730429d
authored
Jan 10, 2025
by
‘yangmengxue’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地不生效
parent
15d12764
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
src/router/index.js
src/router/index.js
+9
-2
src/store/index.js
src/store/index.js
+1
-0
src/views/index/notFound.vue
src/views/index/notFound.vue
+1
-1
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+1
-1
No files found.
src/router/index.js
View file @
1730429d
...
@@ -149,6 +149,10 @@ function checkCam(code, cb) {
...
@@ -149,6 +149,10 @@ function checkCam(code, cb) {
return
false
;
return
false
;
}
}
getCam
(
code
).
then
((
res
)
=>
{
getCam
(
code
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
"
50018
"
)
{
return
}
let
root
=
document
.
querySelector
(
"
:root
"
);
let
root
=
document
.
querySelector
(
"
:root
"
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
root
.
style
.
setProperty
(
"
--bk_pic
"
,
res
.
data
.
background_picture
);
//当前营地的背景图
...
@@ -208,6 +212,7 @@ function checkCam(code, cb) {
...
@@ -208,6 +212,7 @@ function checkCam(code, cb) {
}
}
cb
&&
cb
(
true
);
cb
&&
cb
(
true
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
cb
&&
cb
(
false
);
cb
&&
cb
(
false
);
})
})
}
}
...
@@ -239,6 +244,7 @@ router.beforeEach((to, from, next) => {
...
@@ -239,6 +244,7 @@ router.beforeEach((to, from, next) => {
}
else
if
(
to
.
path
==
toLogin
||
to
.
path
==
toRegister
||
to
.
path
==
toReset
)
{
}
else
if
(
to
.
path
==
toLogin
||
to
.
path
==
toRegister
||
to
.
path
==
toReset
)
{
code
=
to
.
params
.
code
?
to
.
params
.
code
:
to
.
query
.
code
;
code
=
to
.
params
.
code
?
to
.
params
.
code
:
to
.
query
.
code
;
checkCam
(
code
,
(
res
)
=>
{
checkCam
(
code
,
(
res
)
=>
{
console
.
log
(
res
,
'
11
'
)
if
(
res
)
{
if
(
res
)
{
let
token
=
window
.
localStorage
.
getItem
(
"
index-token-all
"
);
let
token
=
window
.
localStorage
.
getItem
(
"
index-token-all
"
);
//检查登陆情况
//检查登陆情况
...
@@ -253,6 +259,7 @@ router.beforeEach((to, from, next) => {
...
@@ -253,6 +259,7 @@ router.beforeEach((to, from, next) => {
}
else
if
(
to
.
name
==
"
recruit
"
)
{
}
else
if
(
to
.
name
==
"
recruit
"
)
{
code
=
to
.
params
.
code
;
code
=
to
.
params
.
code
;
checkCam
(
code
,
(
res
)
=>
{
checkCam
(
code
,
(
res
)
=>
{
console
.
log
(
res
)
if
(
res
)
{
if
(
res
)
{
return
next
();
return
next
();
}
}
...
...
src/store/index.js
View file @
1730429d
...
@@ -31,6 +31,7 @@ let state = {
...
@@ -31,6 +31,7 @@ let state = {
finish_certificate_address
:
null
,
finish_certificate_address
:
null
,
isPost
:
0
,
//是否隐藏填写邮寄地址
isPost
:
0
,
//是否隐藏填写邮寄地址
registrationEnd
:
null
,
//缴费截止时间
registrationEnd
:
null
,
//缴费截止时间
};
};
export
default
new
Vuex
.
Store
({
export
default
new
Vuex
.
Store
({
...
...
src/views/index/notFound.vue
View file @
1730429d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<div>
当前页面不存在,请检查网址是否正确
</div>
<div>
当前页面不存在,请检查网址是否正确
</div>
<div>
<div>
<
router-link
to=
"/"
>
返回报名首页
</router-link
>
<
!--
<router-link
to=
"/"
>
返回报名首页
</router-link>
--
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/index/recruit/Index.vue
View file @
1730429d
...
@@ -64,7 +64,7 @@ export default {
...
@@ -64,7 +64,7 @@ export default {
},
},
created
()
{
created
()
{
this
.
info
=
this
.
$store
.
state
.
info
;
this
.
info
=
this
.
$store
.
state
.
info
;
console
.
log
(
this
.
info
);
//
console.log(this.info);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
anchorList
=
this
.
getAnchor
(
this
.
info
.
student_recruitment_brochure
);
this
.
anchorList
=
this
.
getAnchor
(
this
.
info
.
student_recruitment_brochure
);
},
1000
);
},
1000
);
...
...
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