Commit 4b06d4c7 by FE

Merge branch 'pythonForApp' of gitlab.julyedu.com:baiguangyao/mr-julyedu into pythonForApp

parents 0053fcfb 373e5493
import React, {Component} from 'react'
import {http, getParam, browser} from '@/utils'
import {http, getParam, browser, SendMessageToApp} from '@/utils'
import PythonDes from './pythomDes'
import PythonStudy from './pythonStudy'
import {connect} from "react-redux"
......@@ -103,7 +103,11 @@ class Python extends Component {
backwardVersion: true,
isPay: 0,
})
}else{
}else{ // 安卓/IOS 的高版本
if(data.course_info.is_pay === 1) { // 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面
SendMessageToApp('toSyllabusChapter', id); // 跳转到APP的已购买详情页 id 是课程ID
return;
}
this.setState({
backwardVersion: false,
isPay: data.course_info.is_pay
......
......@@ -133,7 +133,7 @@ class PythonDes extends Component {
if(backwardVersion) {
Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端体验', 2)
} else {
SendMessageToApp("toLearn")
SendMessageToApp("toLearn", getParam('id'))
}
}
} else {
......
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