Commit d15d1903 by wangshuo

单集

parent 8bab3a17
......@@ -53,7 +53,8 @@ class Single extends Component {
// 确定购买
toBuy = () => {
http.get(`${API.home}/sys/createClassOrder/${this.props.data.video_id}`).then((res) => {
const videoID = this.props.data.video_id || this.props.data.id;
http.get(`${API.home}/sys/createClassOrder/${videoID}`).then((res) => {
if (res.data.code === 200) {
this.setState({
orderId: res.data.data.order_id
......
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