Commit 9f286b47 by wangshuo

订单页和其它页面交互优惠券显示;余额抵扣是否勾选状态

parent 3886cc7f
......@@ -248,7 +248,6 @@ class BtnStatus extends Component {
<button className='btn btn-s bg-FCCD05' onClick={e => this.toCart(1)}>加入购物车</button>
}
{/*<Link to='/order' className='btn btn-s bg-FD7700'>立即报名</Link>*/}
<span className='btn btn-s bg-FD7700' onClick={e => this.simpleCourse()}>立即报名</span>
</div>
}
......
......@@ -243,6 +243,20 @@ class Order extends Component {
console.log(resList);
let courseInfo = resList[0],
orderInfo = resList[1];
console.log(courseInfo.data);
console.log(orderInfo.data);
if(courseInfo.data.errno === 200) {
}else{
Toast.info(courseInfo.data.msg, 2);
return;
}
if(orderInfo.data.code === 200) {
}else{
Toast.info(courseInfo.data.msg, 2);
return;
}
this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;
this.publicGetData(courseInfo);
this.publicLocalStorage();
......@@ -312,7 +326,7 @@ class Order extends Component {
pathname: '/orderinfo',
state: {
...this.state.perfect,
type: this.props.location.state ? this.props.location.state.type : null,
...this.props.location.state,
id: getParam('id')
}
}
......
......@@ -95,6 +95,7 @@ const MyForm = withFormik({
if(FormBag.props.userInfo.id) {
pathName = pathName + '?id=' + FormBag.props.userInfo.id;
}
console.log(values);
if(same === 3) {
FormBag.props.history.replace(
pathName,
......@@ -113,7 +114,9 @@ const MyForm = withFormik({
Toast.info('保存成功!', undefined, undefined, false);
FormBag.props.history.replace(
pathName,
values
{
...values,
}
);
});
},
......
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