Commit 3f2f71a9 by zhanghaozhe

限时免费

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