task.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { http } from "@/utils/http";
  2. /**
  3. * 任务列表(旧)
  4. */
  5. export const taskList = (data: any) => {
  6. return http({
  7. method: "GET",
  8. url: "/customer/taskList",
  9. data,
  10. });
  11. };
  12. /**
  13. * 任务门店列表(旧)
  14. */
  15. export const storeListByTaskId = (taskId: string, data: any) => {
  16. return http({
  17. method: "GET",
  18. url: "/customer/storeListByTaskId/" + taskId,
  19. data,
  20. });
  21. };
  22. /**
  23. * 任务列表(新)
  24. */
  25. export const todaysTask = (data: any) => {
  26. return http({
  27. method: "GET",
  28. url: "/wx/taskInfo/todaysTask",
  29. data,
  30. });
  31. };
  32. /**
  33. * 任务门店列表(新)
  34. */
  35. export const taskDetail = (data: any) => {
  36. return http({
  37. method: "GET",
  38. url: "/wx/taskInfo/taskDetail",
  39. data,
  40. });
  41. };
  42. /**
  43. * 今日任务未读数量
  44. */
  45. export const todaysTaskCount = () => {
  46. return http({
  47. method: "GET",
  48. url: "/wx/taskInfo/todaysTaskCount",
  49. });
  50. };
  51. /**
  52. * 筛选渠道列表
  53. */
  54. export const channelByUserId = () => {
  55. return http({
  56. method: "GET",
  57. url: "/wx/taskInfo/getChannelByUserId",
  58. });
  59. };
  60. export const postLoginAPI = (data: any) => {
  61. return http({
  62. method: "POST",
  63. url: "/login",
  64. data,
  65. });
  66. };