api.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // const API_BASE = 'https://xinghuolanqiu.com/newApi'
  2. // const API_BASE = 'http://192.168.1.126:30000'
  3. //const API_BASE = 'http://192.168.1.117:8089'
  4. //const API_BASE = 'http://192.168.1.145/newApi'
  5. //const API_BASE = 'http://192.168.1.109/newApi'
  6. // const API_BASE = 'http://192.168.1.117:8089'
  7. //const API_BASE = 'http://192.168.1.145/newApi'
  8. const API_BASE = 'http://192.168.1.117:8089'
  9. // const API_BASE = 'http://192.168.1.145/newApi'
  10. module.exports = {
  11. // 微信授权登录
  12. wxLogin: API_BASE + '/v2/sale/login/wxLogin',
  13. // 账号密码登录
  14. loginByPassword: API_BASE + '/v2/sale/login/login',
  15. // 团队简报
  16. teamStatistics: API_BASE + '/v2/sale/center/teamStatistics',
  17. // 线索状态
  18. clueRait: API_BASE + '/v2/sale/center/clueRait',
  19. // 获取统计图数据
  20. getCensusChart: API_BASE + '/v2/sale/home/getCustomerCreateStatisticsList',
  21. // 获取附近场馆列表
  22. getNearVenueList: API_BASE + '/v2/sale/home/getVenueNearList',
  23. // 获取所有场馆列表
  24. getAllVenueList: API_BASE + '/v2/sale/home/getVenueNearMoreList',
  25. // 获取所有场馆
  26. getVenueListInfo: API_BASE + '/sgai/venue/get4ShortestVenue',
  27. // 获取场馆详情
  28. getVenueDetail: API_BASE + '/v2/home/getVenueDetailById',
  29. // 获取班级详情
  30. getClassDetail: API_BASE + '/v2/home/getClassDetailById',
  31. // 获取新增统计数据
  32. getCensusInfo: API_BASE + '/v2/sale/home/getCustomerCreateStatisticsDetailCount',
  33. // 获取新增统计列表
  34. getCensusList: API_BASE + '/v2/sale/home/getCustomerCreateStatisticsDetailList',
  35. // 报表
  36. findGroupCustomerNum: API_BASE + '/v2/sale/center/findGroupCustomerNum',
  37. // 获取班级列表
  38. getClassList: API_BASE + '/v2/sale/customer/getClassList',
  39. // 获取礼物列表
  40. getGiftList: API_BASE + '/v2/sale/customer/getGiftList',
  41. // 获取销售员列表
  42. getSaleList: API_BASE + '/v2/sale/customer/getSaleList',
  43. // 获取谈单人列表
  44. getTalkerList: API_BASE + '/v2/sale/customer/getTalkerList',
  45. // 获取支付方式列表
  46. getPayTypeList: API_BASE + '/v2/sale/customer/getPayTypeList',
  47. // 根据订单二维码获取表单信息
  48. getQrCodeInfo: API_BASE + '/v2/sale/customer/getQrCodeInfo',
  49. // 提交已报名表单
  50. submitEnrolledForm: API_BASE + '/v2/sale/customer/joinCLass',
  51. // 无效
  52. updateCustomerState: API_BASE + '/v2/sale/customer/updateCustomerState',
  53. // 提交意向客户表单
  54. submitIntentionForm: API_BASE + '/v2/sale/customer/insertCustomer',
  55. // 获取全部客户列表
  56. getCustomerList: API_BASE + '/v2/sale/center/getCustomerList',
  57. // 获取客户报名列表
  58. getOrderList: API_BASE + '/v2/sale/center/getCustomerDetailList',
  59. // 获取客户报名详情
  60. getOrderInfo: API_BASE + '/v2/sale/center/getCustomerDetail',
  61. // 获取当月销售额
  62. getSaleSortInfo: API_BASE + '/v2/sale/center/getSaleSort',
  63. // 获取业绩销售列表
  64. getSaleSortList: API_BASE + '/v2/sale/center/getSaleSortList',
  65. // 获取续费提醒列表
  66. getRenewList: API_BASE + '/v2/sale/center/getRenewRemindList',
  67. // 获取续费学员详情
  68. getStudentInfo: API_BASE + '/v2/sale/center/getRenewalStudent',
  69. // 获取续费学员沟通记录列表
  70. getRecordList: API_BASE + '/v2/sale/center/getRenewalCommunicateRecordList',
  71. // 提交续费学员沟通记录表单
  72. submitRecordForm: API_BASE + '/v2/sale/center/writeRenewalCommunicateRecord',
  73. // 获取消息通知列表
  74. getMessageList: API_BASE + '/v2/sale/center/messageInform',
  75. // 获取数据统计
  76. getDataCensus: API_BASE + '/v2/sale/center/dataStatistics',
  77. // 获取小程序二维码
  78. getShareUrl: API_BASE + '/v2/sale/center/share',
  79. // 获取服务器端图片
  80. getServerImg: API_BASE + '/download/icon/',
  81. // 上传地址
  82. uploadFile: API_BASE + '/v2/common/file/uploadOne',
  83. // 获取首页场馆列表
  84. getVenueList: API_BASE + '/v2/home/getVenueNearbyList',
  85. // 学员预约
  86. subscribeStudent: API_BASE + '/v2/class/appointment',
  87. // 意向预约
  88. customerAppointment: API_BASE + '/v2/sale/customer/customerAppointment',
  89. // 新增客户
  90. joinCLass: API_BASE + '/v2/sale/customer/joinCLass',
  91. // 客户信息
  92. customerDetail: API_BASE + '/v2/sale/customer/customerDetail',
  93. // 添加追踪记录
  94. addResourceRecord: API_BASE + '/v2/sale/customer/addResourceRecord',
  95. // 查询追踪记录
  96. findResourceRecordList: API_BASE + '/v2/sale/customer/findResourceRecordList',
  97. // 销售员列表
  98. findGroups: API_BASE + '/v2/sale/group/findGroups',
  99. // 学员列表
  100. giftStudentPage: API_BASE + '/v2/sale/center/giftStudentPage',
  101. // 获取一级礼物
  102. findVenueGiftOneList: API_BASE + '/v2/sale/center/findVenueGiftOneList',
  103. // 获取二级礼物
  104. findVenueGiftTwoList: API_BASE + '/v2/sale/center/findVenueGiftTwoList',
  105. }