Commit 3f2f71a9 by zhanghaozhe

限时免费

parent 3316cba4
......@@ -305,6 +305,7 @@
color: #333;
background: #fff;
border-radius: 0 0 5px 5px;
font-size: 15px;
}
& button:first-child {
......
......@@ -70,9 +70,9 @@ class LimitFree extends Component {
}
}
getCourse = id => {
getCourse = (courseId, vCourseId) => {
http.post(`${API.home}/sys/limitFree/receive`, {
course_id: id
course_id: courseId
})
.then(res => {
const {code, msg} = res.data
......@@ -93,7 +93,7 @@ class LimitFree extends Component {
}}>知道了
</button>
<button onClick={() => {
this.toPlay(id)
this.toPlay(vCourseId)
instance.close()
}}>立即学习
</button>
......@@ -175,7 +175,7 @@ class LimitFree extends Component {
<span className={'origin-price'}>¥{item.price0}</span>
<button onClick={e => {
e.stopPropagation()
this.getCourse(item.course_id)
this.getCourse(item.course_id, item.v_course_id)
}}>免费领取
</button>
</div>
......
......@@ -213,6 +213,7 @@
color: #333;
background: #fff;
border-radius: 0 0 5px 5px;
font-size: 15px;
}
& button:first-child {
......
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