Commit 94363531 by xuzhenghua

bug

parents b7919efb a0b4e63a
...@@ -130,7 +130,8 @@ class Order extends Component { ...@@ -130,7 +130,8 @@ class Order extends Component {
this.props.history.push(`/togroup?id=${res.data.data.oid}`); this.props.history.push(`/togroup?id=${res.data.data.oid}`);
return; return;
} }
this.props.history.replace(`/payorder?oid=${res.data.data.oid}`); this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});
}else { }else {
Toast.info(res.data.msg, 2); Toast.info(res.data.msg, 2);
return; return;
......
...@@ -262,8 +262,18 @@ export default class PayOrder extends Component { ...@@ -262,8 +262,18 @@ export default class PayOrder extends Component {
componentDidMount() { componentDidMount() {
this.redirectAfterPay() this.redirectAfterPay()
http.post(`${API['base-api']}/m/order/detail`, {order_id: this.state.orderId}).then((res) => { let data = {}
console.log(res); if(this.props.location.state && this.props.location.state.group){
data = {
order_id: this.state.orderId,
type: 2
}
} else {
data = {
order_id: this.state.orderId,
}
}
http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {
if (res.data.errno !== 200) { if (res.data.errno !== 200) {
Toast.info(res.data.msg, 2); Toast.info(res.data.msg, 2);
return; return;
......
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