Commit 8a0e4495 by FE

Merge branch 'pythonForApp' into pre

parents 1a528daf bb00b43e
......@@ -65,8 +65,10 @@ class Python extends Component {
})
}
this.props.setCurrentUser(this.transformUser(this.state.userInfoList))
this.props.setCurrentUser(this.transformUser(this.state.userInfoList));
this.fetchCourseInfo();
}
transformUser = res => {
let payload
......@@ -89,7 +91,6 @@ class Python extends Component {
fetchCourseInfo = () => {
const id = getParam('id')
alert(0)
http.get(`${API.home}/m/course/detail/${id}`).then((res) => {
const {data, code} = res.data
if (code === 200) {
......@@ -107,9 +108,7 @@ class Python extends Component {
isPay: 0,
})
}else{ // 安卓/IOS 的高版本
alert('的高版本')
if(data.course_info.is_pay === 1) { // 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面
alert(1)
SendMessageToApp('toSyllabusChapter', id); // 跳转到APP的已购买详情页 id 是课程ID
return;
}
......
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