Commit 70c3807a by wangshuo

打包

parent 1e6b164e
......@@ -99,6 +99,11 @@ class Detail extends Component {
})
}
}
showSingleBox = () => {
this.setState({
singleBox: true
})
}
// componentWillReceiveProps(nextProps) {
// let _this = this;
......@@ -303,7 +308,8 @@ class Detail extends Component {
{/*单集购买弹窗*/}
<Single
singleBox={this.state.singleBox}
singleBox={this.state.singleBox}
showSingleBox={this.showSingleBox}
boxHide={this.boxHide}
data={this.state.singMess}
vcourseId={course_info.v_course_id}
......
......@@ -111,6 +111,7 @@ class Single extends Component {
clearInterval(_this.intervalPayStatus);
_this.intervalPayStatus = null;
// 获取课程类型
this.props.showSingleBox();
http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {
Toast.info(Number(res.data.data.errno));
if (Number(res.data.data.errno) === 200) {
......@@ -176,6 +177,7 @@ class Single extends Component {
clearInterval(_this.intervalPayStatus);
_this.intervalPayStatus = null;
// 获取课程类型
this.props.showSingleBox();
http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {
if (Number(res.data.data.errno) === 200) {
// 正常购买单集成功
......
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