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
a3ca3264
Commit
a3ca3264
authored
Dec 16, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
2b4c7f6d
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1482 additions
and
48 deletions
+1482
-48
src/assets/img/homework/file_img.png
src/assets/img/homework/file_img.png
+0
-0
src/assets/scss/homework/refer.scss
src/assets/scss/homework/refer.scss
+192
-0
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+3
-10
src/config/bus.js
src/config/bus.js
+3
-0
src/router/index.js
src/router/index.js
+2
-2
src/store/index.js
src/store/index.js
+3
-2
src/views/index/Info/Index.vue
src/views/index/Info/Index.vue
+1
-1
src/views/index/Info/password.vue
src/views/index/Info/password.vue
+1
-3
src/views/index/Info/personalInfo.vue
src/views/index/Info/personalInfo.vue
+828
-4
src/views/index/camp/Homework.vue
src/views/index/camp/Homework.vue
+20
-15
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+2
-7
src/views/index/camp/homework/refer.vue
src/views/index/camp/homework/refer.vue
+427
-4
No files found.
src/assets/img/homework/file_img.png
0 → 100644
View file @
a3ca3264
2.21 KB
src/assets/scss/homework/refer.scss
0 → 100644
View file @
a3ca3264
.flex
{
display
:
flex
;
}
.referHome
{
padding
:
20px
;
.lf
{
float
:
left
;
}
.rt
{
float
:
right
;
}
::v-deep
.readForm
{
flex
:
1
;
.cont_title
{
position
:
relative
;
height
:
38px
;
line-height
:
38px
;
font-size
:
16px
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#12141c
;
padding-left
:
10px
;
margin-top
:
10px
;
span
{
margin-right
:
15px
;
}
.line
{
position
:
absolute
;
left
:
0
;
top
:
50%
;
transform
:
translateY
(
-50%
);
width
:
3px
;
height
:
14px
;
background-color
:
#12141c
;
opacity
:
0
.4
;
}
}
.cont_title_2
{
height
:
28px
;
line-height
:
28px
;
font-size
:
14px
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#12141c
;
padding
:
0
10px
;
}
.cont_info
{
line-height
:
20px
;
font-size
:
12px
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
padding
:
0
10px
10px
10px
;
}
.fj_info
{
line-height
:
24px
;
font-size
:
12px
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
}
.el-form-item
{
margin-bottom
:
15px
;
padding
:
0
10px
;
.el-form-item__label
{
height
:
32px
;
line-height
:
32px
;
font-size
:
12px
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#12141c
;
}
.el-form-item__content
{
.el-input
,
.el-input-number
{
width
:
100%
;
height
:
36px
;
.el-input__inner
{
text-align
:
left
;
height
:
36px
;
border-radius
:
4px
;
border
:
1px
solid
#e1e3e6
;
background-color
:
#ffffff
;
color
:
#656872
;
&
:hover
{
border-color
:
#4d75f3
;
}
&
:focus
{
border-color
:
#4d75f3
;
}
}
}
.el-textarea__inner
{
min-height
:
100px
!
important
;
}
}
&
.btn
{
margin-top
:
50px
;
.el-form-item__content
{
text-align
:
center
;
}
}
}
.upload_box
{
.img_list
{
position
:
relative
;
float
:
left
;
width
:
160px
;
height
:
120px
;
text-align
:
center
;
background
:
transparent
;
border-radius
:
4px
;
border
:
2px
dashed
#e1e3e6
;
margin
:
0
8px
8px
0
;
padding
:
5px
;
display
:
flex
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
>
div
{
width
:
100%
;
.el-image
{
width
:
30px
;
height
:
30px
;
display
:
block
;
margin
:
0
auto
;
img
{
width
:
auto
;
height
:
auto
;
max-width
:
100%
!
important
;
max-height
:
100%
!
important
;
}
}
.item_name
{
font-size
:
12px
;
color
:
#999999
;
line-height
:
16px
;
word-wrap
:
break-word
;
margin
:
5px
0
10px
;
}
.item_remove
{
width
:
40px
;
font-size
:
12px
;
color
:
#999999
;
font-weight
:
bold
;
line-height
:
16px
;
margin
:
0
auto
;
&
:hover
{
cursor
:
pointer
;
color
:
red
;
}
}
}
}
.el-upload
{
width
:
160px
!
important
;
height
:
120px
!
important
;
line-height
:
120px
!
important
;
background
:
transparent
;
border-radius
:
4px
;
border
:
2px
dashed
#e1e3e6
;
text-align
:
center
!
important
;
}
}
}
}
\ No newline at end of file
src/components/index/SignUp/referInfo.vue
View file @
a3ca3264
...
...
@@ -552,16 +552,9 @@ export default {
bdDay
:
""
,
//选择的生日日期
//入学年份(初中高中)
gradeArrs
:
[
"
初一
"
,
"
初二
"
,
"
初三
"
,
"
高一
"
,
"
高二
"
,
"
高三
"
,
"
大一
"
,
"
大二
"
,
"
大三
"
,
"
大四
"
,
"
初中
"
,
"
高中
"
,
"
大学
"
,
],
//选择年级
start_grade
:
""
,
...
...
src/config/bus.js
0 → 100644
View file @
a3ca3264
//bus.js
import
Vue
from
'
vue
'
export
default
new
Vue
()
src/router/index.js
View file @
a3ca3264
...
...
@@ -158,8 +158,8 @@ function checkCam(code, cb) {
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
to
,
'
to
'
)
console
.
log
(
from
,
'
from
'
)
//
console.log(to, 'to')
//
console.log(from, 'from')
let
toLogin
=
"
/login
"
,
toRegister
=
"
/register
"
,
...
...
src/store/index.js
View file @
a3ca3264
...
...
@@ -14,8 +14,9 @@ let state = {
data
:
[],
token
:
''
,
indexIdentity
:
""
,
// showDialog: false,
// dialogType: 0,
work_context
:
""
,
enclosure_url
:
""
,
info
:{},
isLogin
:
localStorage
.
getItem
(
"
isLogin
"
)
||
"
0
"
,
// 只有1为已登录
};
...
...
src/views/index/Info/Index.vue
View file @
a3ca3264
...
...
@@ -82,7 +82,7 @@ export default {
url
:
svg2
,
},
],
campindex_type
:
""
,
campindex_type
:
0
,
index_status
:
""
,
};
},
...
...
src/views/index/Info/password.vue
View file @
a3ca3264
<
template
>
<div
class=
"camp-index"
>
weweaaaa
</div>
<div
class=
"camp-index"
>
aaaa
</div>
</
template
>
\ No newline at end of file
src/views/index/Info/personalInfo.vue
View file @
a3ca3264
This diff is collapsed.
Click to expand it.
src/views/index/camp/Homework.vue
View file @
a3ca3264
...
...
@@ -12,26 +12,23 @@
<p>
请于2021年XX年XX月XX日 前往网站查看作业
</p>
</div>
-->
<div
class=
"home_content"
>
<div
class=
"each_content"
>
<div
class=
"each_content"
v-for=
"item in homeworkList"
:key=
"item.id"
>
<div
class=
"top flex"
>
<div
class=
"homework_name flex"
>
<div>
作业名称:
第一次课程论文
</div>
<div>
作业名称:
{{
item
.
work_name
}}
</div>
<span>
未完成
</span>
</div>
<el-button
size=
"mini"
round
@
click=
"toRefer()"
>
查看作业
</el-button>
<el-button
size=
"mini"
round
@
click=
"toRefer(item)"
>
查看作业
</el-button
>
</div>
<div
class=
"line"
></div>
<div
class=
"bottom"
>
<p>
简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus
accumsan et viverra justo commodo. Proin sodales pulvinar sic
tempor. Sociis natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Nam fermentum。
</p>
<div
v-html=
"item.work_context"
>
>
</div>
<div
class=
"time flex"
>
<div>
发布时间:
2021-8-21 19:00
</div>
<div>
截止日期:
2021-8-21 19:00
</div>
<div>
发布时间:
{{
item
.
create_time
}}
</div>
<div>
截止日期:
{{
item
.
end_time
}}
</div>
</div>
</div>
</div>
...
...
@@ -44,22 +41,29 @@
<
script
>
/* eslint-disable */
import
{
getTeacherWork
}
from
"
r/index/homework
"
;
import
Bus
from
"
config/bus.js
"
;
export
default
{
name
:
"
homework
"
,
data
()
{
return
{};
return
{
homeworkList
:
{},
};
},
created
()
{
this
.
getTeacherWork
();
},
watch
:
{},
methods
:
{
toRefer
()
{
toRefer
(
item
)
{
// console.log(val,'val')
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/homework/refer?code=
"
+
code
);
this
.
$emit
(
"
torefer
"
,
3
);
window
.
localStorage
.
setItem
(
"
work_context
"
+
code
,
item
.
work_context
);
window
.
localStorage
.
setItem
(
"
enclosure_url
"
+
code
,
item
.
enclosure_url
);
// Bus.$emit("work_context", item.work_context);
// Bus.$emit("enclosure_url", item.enclosure_url);
},
getTeacherWork
()
{
getTeacherWork
({
page
:
1
}).
then
((
res
)
=>
{
...
...
@@ -67,6 +71,7 @@ export default {
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
homeworkList
=
res
.
data
.
data
;
this
.
$message
.
success
(
res
.
data
.
message
);
});
},
...
...
src/views/index/camp/Index.vue
View file @
a3ca3264
...
...
@@ -101,12 +101,7 @@ export default {
homework_val
:
""
,
};
},
watch
:
{
// type(val) {
// console.log(val,'val')
// window.localStorage.setItem("campindex_type", val);
// },
},
watch
:
{},
created
()
{
this
.
getStatus
();
this
.
torefer
();
...
...
@@ -137,10 +132,10 @@ export default {
this
.
$router
.
push
(
"
/signUp/
"
+
this
.
index_status
+
"
?code=
"
+
code
);
this
.
homework_val
==
""
;
}
else
if
(
this
.
campindex_type
==
1
)
{
console
.
log
(
this
.
$route
)
this
.
$router
.
push
(
"
/homework?code=
"
+
code
);
}
else
if
(
this
.
campindex_type
==
2
)
{
this
.
$router
.
push
(
"
/certificate?code=
"
+
code
);
}
},
onResize
()
{
...
...
src/views/index/camp/homework/refer.vue
View file @
a3ca3264
This diff is collapsed.
Click to expand it.
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