work.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import request from "@/utils/request.js";
  11. /**
  12. * 获取企业微信基础配置
  13. *
  14. */
  15. export function getWorkConfig(url) {
  16. return request.get('work/config?url=' + url,{},{
  17. noAuth: true
  18. });
  19. }
  20. /**
  21. * 获取企业微信配置
  22. *
  23. */
  24. export function getWorkAgentConfig(url) {
  25. return request.get('work/agentConfig?url=' + url,{},{
  26. noAuth: true
  27. });
  28. }
  29. /**
  30. * 获取客户信息详情
  31. *
  32. */
  33. export function getWorkAgentInfo(data) {
  34. return request.get('work/client/info',data,{
  35. noAuth: true
  36. });
  37. }
  38. /**
  39. * 获取客户订单列表
  40. *
  41. */
  42. export function getWorkOrderList(data) {
  43. return request.get('work/order/list',data,{
  44. noAuth: true
  45. });
  46. }
  47. /**
  48. * 获取客户订单详情
  49. *
  50. */
  51. export function getWorkOrderInfo(id,data) {
  52. return request.get(`work/order/info/${id}`,data,{
  53. noAuth: true
  54. });
  55. }
  56. /**
  57. * 购买商品记录
  58. *
  59. */
  60. export function getWorkCartList(data) {
  61. return request.get(`work/product/cart_list`,data,{
  62. noAuth: true
  63. });
  64. }
  65. /**
  66. * 浏览记录商品记录
  67. *
  68. */
  69. export function getWorkVisitInfo(data) {
  70. return request.get(`work/product/visit_list`,data,{
  71. noAuth: true
  72. });
  73. }
  74. /**
  75. * 获取客户群详情
  76. *
  77. */
  78. export function getWorkGroupInfo(data) {
  79. return request.get(`work/groupInfo`,data,{
  80. noAuth: true
  81. });
  82. }
  83. /**
  84. * 获取群成员列表
  85. *
  86. */
  87. export function getWorkGroupMember(id,data) {
  88. return request.get(`work/groupMember/${id}`,data,{
  89. noAuth: true
  90. });
  91. }