Showing
1 changed file
with
2 additions
and
0 deletions
@@ -608,6 +608,8 @@ function countAJAX(data) { | @@ -608,6 +608,8 @@ function countAJAX(data) { | ||
608 | }).then(function(d) { | 608 | }).then(function(d) { |
609 | if (d.code === 200) { | 609 | if (d.code === 200) { |
610 | window.history.go(0); | 610 | window.history.go(0); |
611 | + } else { | ||
612 | + new Alert(d.message === '' ? '加入购物车失败哦~~' : d.message).show(); | ||
611 | } | 613 | } |
612 | countBusy = false; | 614 | countBusy = false; |
613 | }); | 615 | }); |
-
Please register or login to post a comment