activity_favourite.js 863 B

1234567891011121314151617181920212223242526272829
  1. $(".favourite").click(function () {
  2. var id = this.id;
  3. layer.confirm('确认取消收藏吗?', function (index) {
  4. $.ajax({
  5. url: pagePath + "/street/activity/favouriteCancel",
  6. type: "post",
  7. data: {
  8. 'id': id
  9. },
  10. dataType: "json",
  11. success: function (result) {
  12. if (result.success) {
  13. smileMessage(result.message);
  14. setTime();
  15. } else {
  16. errorMessage(result.message);
  17. }
  18. },
  19. error: function () {
  20. errorMessage('系统错误!');
  21. }
  22. });
  23. })
  24. })
  25. function gotoDetail(id) {
  26. //top.location.href = pagePath + "/home/activityDetail/" + id;
  27. window.open(pagePath + "/index/#/activityDetail?id=" + id);
  28. }