Commit 0aca4cf9 by wangshuo

解放TODO

parent 18e4e773
......@@ -22,8 +22,7 @@ class Python extends Component {
const { data, code } = res.data;
if (code === 200) {
this.setState({
// TODO
// isPay: data.course_info.is_pay
isPay: data.course_info.is_pay
})
}
});
......@@ -37,7 +36,7 @@ class Python extends Component {
isPay === 0 && <PythonDes history={this.props.history}></PythonDes>
}
{
isPay === 1 && <PythonStudy></PythonStudy>
(isPay === 1 && !getParam('version')) && <PythonStudy />
}
</div>
)
......
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