Commit 8dc4e5b6 by xuzhenghua

购物车

parent 2946ce30
......@@ -132,7 +132,7 @@ class Cart extends Component {
console.log(this.state.courseIdarr);
http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {
if (res.data.errno == 0) {
this.props.history.push(`/order?id=[${this.state.courseIdarr}]`)
this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})
} else {
Toast.info(res.data.msg, 2);
}
......
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