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
1df78caa
Commit
1df78caa
authored
Dec 09, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
ec83e2ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
36 deletions
+59
-36
src/request/index/network.js
src/request/index/network.js
+1
-1
src/router/index/camp.js
src/router/index/camp.js
+32
-22
src/views/index/camp/Homework.vue
src/views/index/camp/Homework.vue
+18
-11
src/views/index/camp/homework/refer.vue
src/views/index/camp/homework/refer.vue
+5
-0
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+3
-2
No files found.
src/request/index/network.js
View file @
1df78caa
...
@@ -283,7 +283,7 @@ export function request(config) {
...
@@ -283,7 +283,7 @@ export function request(config) {
return
res
return
res
},
},
(
error
)
=>
{
(
error
)
=>
{
//
console.log(error, 'err')
console
.
log
(
error
,
'
err
'
)
// console.log(error.response.status, '5555')
// console.log(error.response.status, '5555')
Message
.
closeAll
()
Message
.
closeAll
()
if
(
error
.
response
.
status
===
404
)
{
if
(
error
.
response
.
status
===
404
)
{
...
...
src/router/index/camp.js
View file @
1df78caa
export
default
[{
export
default
[{
path
:
'
/signUp/:type
'
,
path
:
'
/signUp/:type
'
,
name
:
'
index-signUp
'
,
name
:
'
index-signUp
'
,
component
:
()
=>
import
(
/* webpackChunkName: "login" */
'
v/index/camp/SignUp.vue
'
),
component
:
()
=>
import
(
'
v/index/camp/SignUp.vue
'
),
meta
:
{
meta
:
{
title
:
'
营地报名
'
title
:
'
营地报名
'
}
}
},
},
{
{
path
:
'
/homework
'
,
path
:
'
/homework
'
,
name
:
'
index-homework
'
,
name
:
'
index-homework
'
,
component
:
()
=>
import
(
/* webpackChunkName: "reset" */
'
v/index/camp/Homework.vue
'
),
component
:
()
=>
import
(
'
v/index/camp/Homework.vue
'
),
meta
:
{
meta
:
{
title
:
'
营地作业
'
title
:
'
营地作业
'
}
},
},
children
:
[{
{
path
:
'
/refer
'
,
path
:
'
/certificate
'
,
name
:
'
refer
'
,
name
:
'
index-certificate
'
,
component
:
()
=>
import
(
'
v/index/camp/homework/refer.vue
'
),
component
:
()
=>
import
(
/* webpackChunkName: "reset" */
'
v/index/camp/Certificate.vue
'
),
meta
:
{
meta
:
{
title
:
'
提交作业
'
title
:
'
营地证书
'
},
},
]
},
{
path
:
'
/certificate
'
,
name
:
'
index-certificate
'
,
component
:
()
=>
import
(
'
v/index/camp/Certificate.vue
'
),
meta
:
{
title
:
'
营地证书
'
}
}
}
}
]
]
src/views/index/camp/Homework.vue
View file @
1df78caa
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
<p>
请于2021年XX年XX月XX日 前往网站查看作业
</p>
<p>
请于2021年XX年XX月XX日 前往网站查看作业
</p>
</div>
-->
</div>
-->
<div
class=
"home_content"
>
<div
class=
"home_content"
>
<div
>
<div
class=
"each_content"
>
<div
class=
"top flex"
>
<div
class=
"top flex"
>
<div
class=
"homework_name flex"
>
<div
class=
"homework_name flex"
>
<div>
作业名称:第一次课程论文
</div>
<div>
作业名称:第一次课程论文
</div>
<span>
未完成
</span>
<span>
未完成
</span>
</div>
</div>
<
div>
查看作业
</div
>
<
el-button
size=
"mini"
round
@
click=
"toRefer()"
>
查看作业
</el-button
>
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"line"
></div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
...
@@ -45,18 +45,18 @@ export default {
...
@@ -45,18 +45,18 @@ export default {
name
:
"
homework
"
,
name
:
"
homework
"
,
data
()
{
data
()
{
return
{
return
{};
};
},
},
created
()
{
created
()
{
// this.$emit("getStatus", false, 1);
// this.$emit("getStatus", false, 1);
},
},
watch
:
{},
watch
:
{},
methods
:
{},
methods
:
{
toRefer
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/homework/refer?code=
"
+
code
);
},
},
};
};
</
script
>
</
script
>
...
@@ -94,8 +94,15 @@ export default {
...
@@ -94,8 +94,15 @@ export default {
.home_content
{
.home_content
{
padding-bottom
:
200px
;
padding-bottom
:
200px
;
font-size
:
14px
;
font-size
:
14px
;
.top
{
.each_content
{
justify-content
:
space-between
;
padding
:
25px
30px
;
background-color
:
#eceaea
;
.top
{
justify-content
:
space-between
;
}
.line
{
border-bottom
:
1px
solid
;
}
}
}
}
}
}
}
...
...
src/views/index/camp/homework/refer.vue
0 → 100644
View file @
1df78caa
<
template
>
<div>
1111111
</div>
</
template
>
\ No newline at end of file
src/views/index/recruit/Index.vue
View file @
1df78caa
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Cookie
from
"
js-cookie
"
;
import
Header
from
"
@/components/index/Header.vue
"
;
import
Header
from
"
@/components/index/Header.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
{
import
{
...
@@ -63,9 +63,10 @@ export default {
...
@@ -63,9 +63,10 @@ export default {
created
()
{
created
()
{
this
.
info
=
this
.
$store
.
state
.
info
;
this
.
info
=
this
.
$store
.
state
.
info
;
let
code
=
this
.
$store
.
state
.
indexIdentity
let
code
=
this
.
$store
.
state
.
indexIdentity
// console.log(code)
getCamInfo
(
code
).
then
((
res
)
=>
{
getCamInfo
(
code
).
then
((
res
)
=>
{
// console.log(res, '33333')
// console.log(res, '33333')
console
.
log
(
res
.
data
.
name
,
'
res.name
'
)
//
console.log(res.data.name, 'res.name')
document
.
title
=
res
.
data
.
name
document
.
title
=
res
.
data
.
name
return
false
;
return
false
;
})
})
...
...
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