Commit fcb6fca3 by xuzhenghua

python

parent 6f816124
......@@ -119,13 +119,20 @@ class PythonDes extends Component {
}
toLearn = () => {
if (!getParam('version')) { // H5
this.setState({
toApp: true
})
} else { // APP
SendMessageToApp("toLearn")
}
http.post(`${API['home']}web/python/trial_course`, {course_id: getParam('id')}).then((res) => {
const {code, msg} = res.data
if (code == 200) {
if (!getParam('version')) { // H5
this.setState({
toApp: true
})
} else { // APP
SendMessageToApp("toLearn")
}
} else {
Toast.info(msg, 2)
}
})
}
closePop = () => {
......
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