tip after brand col/cancel col
Showing
1 changed file
with
7 additions
and
0 deletions
@@ -425,6 +425,13 @@ if ($brandHeader.length > 0) { | @@ -425,6 +425,13 @@ if ($brandHeader.length > 0) { | ||
425 | success: function(data) { | 425 | success: function(data) { |
426 | if (data.code === 200) { | 426 | if (data.code === 200) { |
427 | $this.toggleClass('coled'); | 427 | $this.toggleClass('coled'); |
428 | + | ||
429 | + //提示 | ||
430 | + if (opt === 'ok') { | ||
431 | + tip.show('添加收藏成功'); | ||
432 | + } else { | ||
433 | + tip.show('取消收藏成功'); | ||
434 | + } | ||
428 | } else if (data.code === 400) { | 435 | } else if (data.code === 400) { |
429 | location.href = data.data;//未登录跳转登录页 | 436 | location.href = data.data;//未登录跳转登录页 |
430 | } else { | 437 | } else { |
-
Please register or login to post a comment