Commit 4ddc4cc2 by FE

pull and solve

parent 63a49acf
...@@ -38,10 +38,7 @@ class Python extends Component { ...@@ -38,10 +38,7 @@ class Python extends Component {
this.setState({ this.setState({
userInfoList: result userInfoList: result
}, () => { }, () => {
alert(JSON.stringify(this.state.userInfoList))
alert(this.state.userInfoList.length)
if (this.state.userInfoList.length) { if (this.state.userInfoList.length) {
alert(3)
this.props.startFetchUser() this.props.startFetchUser()
this.appLogin() this.appLogin()
} }
...@@ -64,11 +61,10 @@ class Python extends Component { ...@@ -64,11 +61,10 @@ class Python extends Component {
this.setState({ this.setState({
isAppUpdate: true isAppUpdate: true
}) })
this.fetchCourseInfo();
} }
this.props.setCurrentUser(this.transformUser(this.state.userInfoList)); this.props.setCurrentUser(this.transformUser(this.state.userInfoList));
this.fetchCourseInfo();
} }
transformUser = res => { transformUser = res => {
...@@ -110,8 +106,6 @@ class Python extends Component { ...@@ -110,8 +106,6 @@ class Python extends Component {
isPay: 0, isPay: 0,
}) })
}else{ // 安卓/IOS 的高版本 }else{ // 安卓/IOS 的高版本
alert('的高版本');
alert(data.course_info.is_pay)
if(data.course_info.is_pay === 1) { // 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面 if(data.course_info.is_pay === 1) { // 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面
SendMessageToApp('toSyllabusChapter', id); // 跳转到APP的已购买详情页 id 是课程ID SendMessageToApp('toSyllabusChapter', id); // 跳转到APP的已购买详情页 id 是课程ID
return; 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