cmClubPortrait.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * Created 机构画像 by zjy on 2023/02/10.
  3. */
  4. $(function(){
  5. // 机构客户需求初始化时间
  6. getInfoDemandDate()
  7. // 机构订单初始化时间
  8. getInfoOrderDate();
  9. // 机构搜索关键词初始化时间
  10. getInfoKeyWordsDate();
  11. // 机构咨询记录初始化时间
  12. getInfoServiceDate();
  13. // 机构访问记录初始化时间
  14. getInfoVisitDate();
  15. // 第一次执行查所有
  16. getDemandData(4);
  17. getClubEacthsData(0,4);
  18. getClubEacthsData(1,4);
  19. getClubEacthsData(2,4);
  20. getClubEacthsData(3,4);
  21. // 点击筛选客户需求数据
  22. $('#customerDemand').children("a").each(function (index) {
  23. $(this).click(function () {
  24. console.log('客户需求筛选')
  25. //alert(index);
  26. $(this).addClass('active').siblings('a').removeClass('active');
  27. let dateType = $(this).attr('data-type');
  28. getDemandData(dateType)
  29. });
  30. });
  31. // 点击筛选机构订单数据
  32. $('#orderTabs').children("a").each(function (index) {
  33. $(this).click(function () {
  34. //alert(index);
  35. $(this).addClass('active').siblings('a').removeClass('active');
  36. let dateType = $(this).attr('data-type');
  37. getClubEacthsData(0,dateType)
  38. });
  39. });
  40. // 点击筛选机构搜索关键词数据
  41. $('#keyWordTabs').children("a").each(function (index) {
  42. $(this).click(function () {
  43. //alert(index);
  44. $(this).addClass('active').siblings('a').removeClass('active');
  45. let dateType = $(this).attr('data-type');
  46. getClubEacthsData(1,dateType)
  47. });
  48. });
  49. // 点击筛选咨询记录数据
  50. $('#serviceTabs').children("a").each(function (index) {
  51. $(this).click(function () {
  52. //alert(index);
  53. $(this).addClass('active').siblings('a').removeClass('active');
  54. let dateType = $(this).attr('data-type');
  55. getClubEacthsData(2,dateType)
  56. });
  57. });
  58. // 点击筛选机构访问记录数据
  59. $('#visitTabs').children("a").each(function (index) {
  60. $(this).click(function () {
  61. //alert(index);
  62. $(this).addClass('active').siblings('a').removeClass('active');
  63. let dateType = $(this).attr('data-type');
  64. getClubEacthsData(3,dateType)
  65. });
  66. });
  67. // 前往新后台
  68. $('.visitNum').click(function () {
  69. var link = "";
  70. $.get("${ctx}/jump/link", function (data) {
  71. link = "https://manager.caimei365.com/#/user/record-list?token=" + data;
  72. window.open(link, "_blank");
  73. });
  74. })
  75. })