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
f098b536
Commit
f098b536
authored
Oct 18, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学习进度统计
parent
e103d061
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/components/video/index.js
+3
-2
No files found.
src/components/video/index.js
View file @
f098b536
...
...
@@ -500,7 +500,7 @@ class Video extends Component {
this
.
count
=
this
.
watchSec
=
0
}
else
{
!
this
.
player
.
paused
()
&&
this
.
watchSec
++
this
.
count
++
!
this
.
player
.
paused
()
&&
this
.
count
++
}
}
},
1000
)
...
...
@@ -556,7 +556,8 @@ class Video extends Component {
})
this
.
player
.
on
(
'ended'
,
()
=>
{
console
.
log
(
'ended'
);
this
.
sendWatchTime
(
this
.
watchSec
,
this
.
currentPlaybackRate
)
this
.
sendWatchTime
(
this
.
watchSec
,
this
.
currentPlaybackRate
);
this
.
count
=
this
.
watchSec
=
0
;
this
.
countSchedule
();
// 计算进度 -- 播放完毕
// 返现课程才出现打卡记录
if
(
this
.
state
.
course
.
is_aist
)
{
...
...
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