Commit 21a19d1c by xuzhenghua

pull

parent 0776c5fc
......@@ -119,21 +119,17 @@ class PythonDes extends Component {
}
toLearn = () => {
alert('免费试学')
http.post(`${API['home']}/m/it/user/trialCourse`, {course_id: getParam('id')}).then((res) => {
const {code, msg} = res.data
if (code == 200) {
alert('code == 200')
if (!getParam('version')) { // H5
this.setState({
toApp: true
})
} else { // APP
alert('app')
SendMessageToApp("toLearn")
}
} else {
alert('code != 200')
Toast.info(msg, 2)
}
})
......
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