Commit 64c27103 by zhanghaozhe

test

parent 03c8101c
......@@ -125,7 +125,7 @@ class Video extends Component {
return {
uid,
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()),
plat: 5
}
......@@ -142,9 +142,9 @@ class Video extends Component {
this.ws.addEventListener('close', () => {
if (this.reconnect) {
this.ws = null
/*setTimeout(() => {
setTimeout(() => {
this.setupWS();
}, 1000)*/
}, 1000)
}
clearInterval(this.timer)
})
......@@ -251,9 +251,6 @@ class Video extends Component {
v_course_id: this.state.course['v_course_id'],
video_id: this.state.videoList[this.state.activeIndex].id
})
.then(res => {
console.log(res);
})
}
componentWillUnmount() {
......@@ -404,7 +401,6 @@ class Video extends Component {
hasAuth = () => {
const {course, videoList, activeIndex} = this.state
let lesson = videoList[activeIndex]
console.log(activeIndex);
if (!lesson['is_free']) {
if (course['is_audition']) {
this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment