Commit 569c3ab9 by xuzhenghua

购物车

parent 46782794
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
.course-title { .course-title {
font-size: 14px; font-size: 14px;
color: $color_333; color: $color_333;
min-height: 38px;
line-height: 19px; line-height: 19px;
margin-top: 9px; margin-top: 9px;
} }
......
...@@ -152,6 +152,10 @@ class Cart extends Component { ...@@ -152,6 +152,10 @@ class Cart extends Component {
http.post(`${API.home}/m/cart/remove`, data).then((res) => { http.post(`${API.home}/m/cart/remove`, data).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.getList() this.getList()
this.setState({
allPrice: 0,
checkedNum: 0
})
} else { } else {
Toast.info(res.data.msg, 2); 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