Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
7036cb18
Commit
7036cb18
authored
Mar 05, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
7dc3f6ae
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
51 additions
and
76 deletions
+51
-76
src/components/college/banner.scss
+3
-1
src/components/college/courseList.js
+1
-1
src/components/college/courseList.scss
+7
-3
src/components/college/index.js
+10
-16
src/components/college/index.scss
+4
-9
src/components/video/camp/campTest.js
+1
-0
src/components/video/index.js
+1
-44
src/components/video/video-catalog/index.js
+18
-1
src/components/video/video-catalog/video-catalog.scss
+6
-1
No files found.
src/components/college/banner.scss
View file @
7036cb18
.college-banner
{
height
:
100px
;
background-image
:
url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/college-banner.png')
;
// background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/college-banner.png');
background-image
:
url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/m-banner.png')
;
background-size
:
cover
;
}
\ No newline at end of file
src/components/college/courseList.js
View file @
7036cb18
...
...
@@ -18,7 +18,6 @@ class CollegeCourse extends Component {
componentDidMount
()
{
this
.
fetchCourseList
();
document
.
title
=
`助力高校在线教学计划之中科大软院(苏州)专区 - 七月在线`
}
fetchCourseList
=
()
=>
{
...
...
@@ -31,6 +30,7 @@ class CollegeCourse extends Component {
header
:
data
.
name
,
courseList
:
data
.
data
});
document
.
title
=
`助力高校在线教学计划之
${
data
.
name
}
专区 - 七月在线`
}
});
}
...
...
src/components/college/courseList.scss
View file @
7036cb18
...
...
@@ -31,12 +31,15 @@
}
.college-course__title
{
display
:
-
webkit-box
;
margin
:
8px
0
0
;
padding-left
:
5px
;
font-size
:
14px
;
color
:
#525C65
;
line-height
:
16px
;
// text-overflow: ellipsis;
// white-space: nowrap;
// overflow: hidden;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
/* autoprefixer: ignore next */
-webkit-box-orient
:
vertical
;
}
\ No newline at end of file
src/components/college/index.js
View file @
7036cb18
...
...
@@ -12,12 +12,12 @@ class CollegePage extends Component {
sectionInfo
:
[
{
title
:
'系统赞助'
,
desc
:
'免费提供在线直播系统
(屏幕实时演示),支持
视频回放、互动答疑。'
,
desc
:
'免费提供在线直播系统
,支持电脑屏幕实时演示,以及
视频回放、互动答疑。'
,
icon
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png'
,
},
{
title
:
'
内容
赞助 '
,
desc
:
'免费开放相关课程的视频、课件、作业、考试、
项目
云平台(在线编译、在线批改)。'
,
title
:
'
课程
赞助 '
,
desc
:
'免费开放相关课程的视频、课件、作业、考试、
代码、项目、
云平台(在线编译、在线批改)。'
,
icon
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/content.png'
,
},
],
...
...
@@ -31,11 +31,12 @@ class CollegePage extends Component {
}
fetchSchoolList
=
()
=>
{
const
{
schoolList
}
=
this
.
state
;
http
.
get
(
`
${
API
[
'home'
]}
/sys/school/list`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
this
.
setState
({
schoolList
:
data
,
schoolList
:
data
.
concat
(
schoolList
)
,
});
}
});
...
...
@@ -43,7 +44,9 @@ class CollegePage extends Component {
toCollegeCourse
=
(
id
)
=>
{
const
{
history
}
=
this
.
props
;
history
.
push
(
`/college/
${
id
}
`
);
if
(
id
)
{
history
.
push
(
`/college/
${
id
}
`
);
}
}
render
()
{
...
...
@@ -58,7 +61,6 @@ class CollegePage extends Component {
marginTop
:
'20px'
}}
title
=
"助力高校在线教学计划"
/>
<
p
className
=
"college-page__contact"
>
免费入驻联系周先生:
18910848502
(
微信同
)
<
/p
>
{
...
...
@@ -76,9 +78,8 @@ class CollegePage extends Component {
headerStyle
=
{{
marginTop
:
'20px'
}}
isDecorate
=
{
false
}
title
=
"入驻学院"
isDecorate
=
{
false
}
title
=
"入驻院校"
/>
<
div
className
=
"college-page__college"
>
{
...
...
@@ -93,13 +94,6 @@ class CollegePage extends Component {
<
/div
>
))
}
<
div
className
=
"college__item"
>
<
i
className
=
"college__iamge college__iamge-add"
><
/i
>
<
p
className
=
"college__name"
>
东华理工大学软件学院
<
/p
>
<
/div
>
<
/div
>
<
/
>
)
...
...
src/components/college/index.scss
View file @
7036cb18
...
...
@@ -43,12 +43,12 @@
}
.college-page__college
{
display
:
flex
;
flex-wrap
:
wrap
;
//
display: flex;
//
flex-wrap: wrap;
padding
:
4px
10px
0
;
.college__item
{
width
:
166px
;
//
width: 166px;
margin
:
0
5px
10px
;
cursor
:
pointer
;
}
...
...
@@ -58,16 +58,11 @@
height
:
60px
;
border
:
1px
solid
#ECECEC
;
border-radius
:
1px
;
background-size
:
auto
100
%
;
background-size
:
auto
95
%
;
background-position
:
center
;
background-repeat
:
no-repeat
;
}
.college__iamge-add
{
background-image
:
url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/donghua.png')
;
background-size
:
100%
;
}
.college__name
{
margin
:
6px
0
0
;;
font-size
:
12px
;
...
...
src/components/video/camp/campTest.js
View file @
7036cb18
...
...
@@ -149,6 +149,7 @@ class CampTest extends Component {
data
.
answer_record
=
this
.
answerList
;
http
.
post
(
`
${
API
.
home
}
/m/aist/submit`
,
data
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
this
.
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
this
.
body
.
style
.
position
=
'static'
;
this
.
props
.
history
.
push
(
`/campResolve?keshi_id=
${
this
.
keshi_id
}
&qid=
${
this
.
qid
}
`
,
{
from
:
this
.
props
.
location
.
state
.
from
})
}
else
{
...
...
src/components/video/index.js
View file @
7036cb18
...
...
@@ -13,7 +13,6 @@ import { Modal } from "antd-mobile"
import
{
Loading
}
from
'@/common'
import
{
connect
}
from
"react-redux"
import
jsCookie
from
'js-cookie'
import
io
from
'socket.io-client'
import
Single
from
"@/components/detail/single"
;
import
SingleSuccess
from
"../detail/single/singleSuccess"
;
import
'./CustomPlayButton'
...
...
@@ -83,8 +82,6 @@ class Video extends Component {
isCurrentVideoFirstPlay
=
true
WATCHTIME
=
"watch_time"
COUNTSCHEDULE
=
"count_schedule"
RECENTLEARN
=
"recent_learn"
state
=
{
...
...
@@ -136,7 +133,6 @@ class Video extends Component {
this
.
token
=
jsCookie
.
get
(
'token'
)
this
.
getVideoList
()
this
.
getDatumCatalog
()
this
.
setupRecord
()
}
// 直接购买
...
...
@@ -341,40 +337,6 @@ class Video extends Component {
})
}
setupRecord
=
()
=>
{
this
.
recordSocket
=
io
(
API
.
record
,
{
transports
:
[
'websocket'
],
forceNew
:
true
})
// this.recordSocket = io(API.record)
// this.recordSocket.on('seek', time => {
// this.player.currentTime(time)
// })
// 开启定时器 每5秒发送一次学习记录 --删除
this
.
recordTimer
=
setInterval
(()
=>
{
this
.
sendRecord
()
},
5000
)
}
// 发送学习记录
sendRecord
=
()
=>
{
if
(
this
.
recordSocket
&&
this
.
player
)
{
this
.
recordSocket
.
emit
(
'addRecord'
,
this
.
recordUserInfo
())
}
}
// 返回学习记录的数据
recordUserInfo
=
()
=>
{
let
{
uid
}
=
this
.
props
.
user
.
data
return
{
uid
,
course_id
:
this
.
courseID
,
video_id
:
this
.
state
.
videoList
[
this
.
state
.
activeIndex
][
'id'
],
video_time
:
parseInt
(
this
.
player
.
currentTime
()),
plat
:
5
}
}
// 9502 初始化 监听事件
setupWS
=
()
=>
{
this
.
ws
=
new
WebSocket
(
API
[
"process-api"
]);
...
...
@@ -524,9 +486,6 @@ class Video extends Component {
}
})
this
.
player
.
addChild
(
'CustomPlayButtonCover'
)
this
.
player
.
on
(
'ready'
,
()
=>
{
this
.
recordSocket
.
emit
(
'load'
,
this
.
recordUserInfo
())
})
this
.
player
.
on
(
'play'
,
()
=>
{
const
{
videoList
,
activeIndex
,
vCourseId
,
course
=
{}}
=
this
.
state
// 当视频播放时 看是否是第一次播放(初次进入页面 刷新页面 切换视频 都是第一次播放 需要获取上次的播放时间)
...
...
@@ -566,9 +525,6 @@ class Video extends Component {
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
})
this
.
player
.
on
(
'seeked'
,
()
=>
{
this
.
sendRecord
()
})
}
sendLastRecord
=
()
=>
{
...
...
@@ -895,6 +851,7 @@ class Video extends Component {
activeIndex
=
{
this
.
state
.
activeIndex
}
selectVideo
=
{
this
.
selectVideo
}
videoCatalog
=
{
videoList
}
isAist
=
{
course
.
is_aist
}
{...
props
}
/
>
);
...
...
src/components/video/video-catalog/index.js
View file @
7036cb18
...
...
@@ -34,7 +34,8 @@ class VideoCatalog extends Component {
)}
/
>
<
/div
>
{
(
item
.
practice
&&
item
.
practice
.
qid
)
this
.
props
.
isAist
?
(
(
item
.
practice
&&
item
.
practice
.
qid
)
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
item
.
practice
.
qid
}
`
,
...
...
@@ -46,6 +47,22 @@ class VideoCatalog extends Component {
<
/div
>
<
/Link
>
:
null
)
:
(
item
.
practice_common
.
map
((
commonItem
,
index
)
=>
{
return
(
<
Link
to
=
{{
pathname
:
commonItem
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
commonItem
.
qid
}
`
,
state
:
{
from
:
`/play/video
${
window
.
location
.
search
}
`
}
}}
key
=
{
index
}
>
<
div
className
=
"exercise"
>
课后练习:
{
commonItem
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
!
item
.
video_auth
?
'iconiconfront-74'
:
commonItem
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
/div
>
<
/Link
>
)
})
)
}
<
/li
>
)
...
...
src/components/video/video-catalog/video-catalog.scss
View file @
7036cb18
...
...
@@ -33,11 +33,16 @@
}
}
a
:last-child
{
.exercise
{
margin-bottom
:
15px
;
}
}
.exercise
{
padding-left
:
15px
;
height
:
35px
;
background
:
#F5FBFF
;
margin-bottom
:
15px
;
line-height
:
35px
;
font-size
:
$font_12
;
color
:
#000
;
...
...
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