Commit fcb6fca3 by xuzhenghua

python

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