Commit 64c27103 by zhanghaozhe

test

parent 03c8101c
...@@ -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({
......
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