Commit 94363531 by xuzhenghua

bug

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