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
64c27103
Commit
64c27103
authored
Aug 15, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
03c8101c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/components/video/index.js
+3
-7
No files found.
src/components/video/index.js
View file @
64c27103
...
@@ -125,7 +125,7 @@ class Video extends Component {
...
@@ -125,7 +125,7 @@ class Video extends Component {
return
{
return
{
uid
,
uid
,
course_id
:
this
.
courseID
,
course_id
:
this
.
courseID
,
video_id
:
this
.
state
.
videoList
[
this
.
state
.
activeIndex
]
.
id
,
video_id
:
this
.
state
.
videoList
[
this
.
state
.
activeIndex
]
[
'id'
]
,
video_time
:
parseInt
(
this
.
player
.
currentTime
()),
video_time
:
parseInt
(
this
.
player
.
currentTime
()),
plat
:
5
plat
:
5
}
}
...
@@ -142,9 +142,9 @@ class Video extends Component {
...
@@ -142,9 +142,9 @@ class Video extends Component {
this
.
ws
.
addEventListener
(
'close'
,
()
=>
{
this
.
ws
.
addEventListener
(
'close'
,
()
=>
{
if
(
this
.
reconnect
)
{
if
(
this
.
reconnect
)
{
this
.
ws
=
null
this
.
ws
=
null
/*
setTimeout(() => {
setTimeout
(()
=>
{
this
.
setupWS
();
this
.
setupWS
();
}, 1000)
*/
},
1000
)
}
}
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
})
})
...
@@ -251,9 +251,6 @@ class Video extends Component {
...
@@ -251,9 +251,6 @@ class Video extends Component {
v_course_id
:
this
.
state
.
course
[
'v_course_id'
],
v_course_id
:
this
.
state
.
course
[
'v_course_id'
],
video_id
:
this
.
state
.
videoList
[
this
.
state
.
activeIndex
].
id
video_id
:
this
.
state
.
videoList
[
this
.
state
.
activeIndex
].
id
})
})
.
then
(
res
=>
{
console
.
log
(
res
);
})
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
...
@@ -404,7 +401,6 @@ class Video extends Component {
...
@@ -404,7 +401,6 @@ class Video extends Component {
hasAuth
=
()
=>
{
hasAuth
=
()
=>
{
const
{
course
,
videoList
,
activeIndex
}
=
this
.
state
const
{
course
,
videoList
,
activeIndex
}
=
this
.
state
let
lesson
=
videoList
[
activeIndex
]
let
lesson
=
videoList
[
activeIndex
]
console
.
log
(
activeIndex
);
if
(
!
lesson
[
'is_free'
])
{
if
(
!
lesson
[
'is_free'
])
{
if
(
course
[
'is_audition'
])
{
if
(
course
[
'is_audition'
])
{
this
.
setState
({
this
.
setState
({
...
...
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