api.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. let API_BASE = 'https://starfire.jihengcc.cn/newApi'
  10. if(Date.parse(new Date())>1660190400000){
  11. API_BASE = 'https://xinghuolanqiu.com/newApi'
  12. }
  13. // const API_BASE = 'http://192.168.1.145/newApi'
  14. module.exports = {
  15. // 微信授权登录
  16. wxLogin: API_BASE + '/v2/sale/login/wxLogin',
  17. // 账号密码登录
  18. loginByPassword: API_BASE + '/v2/sale/login/login',
  19. // 团队简报
  20. teamStatistics: API_BASE + '/v2/sale/center/teamStatistics',
  21. // 线索状态
  22. clueRait: API_BASE + '/v2/sale/center/clueRait',
  23. // 获取统计图数据
  24. getCensusChart: API_BASE + '/v2/sale/home/getCustomerCreateStatisticsList',
  25. // 久未跟进
  26. estrangedList: API_BASE + '/v2/sale/center/estrangedList',
  27. // 生日提醒
  28. birthdayRemind: API_BASE + '/v2/sale/center/birthdayRemind',
  29. // 预约记录
  30. oneWeekAppointment: API_BASE + '/v2/sale/center/oneWeekAppointment',
  31. // 获取附近场馆列表
  32. getNearVenueList: API_BASE + '/v2/sale/home/getVenueNearList',
  33. // 获取所有场馆列表
  34. getAllVenueList: API_BASE + '/v2/sale/home/getVenueNearMoreList',
  35. // 获取场馆列表
  36. getSaleVenueList: API_BASE + '/v2/sale/center/getSaleVenueList',
  37. // 获取所有场馆
  38. getVenueListInfo: API_BASE + '/sgai/venue/get4ShortestVenue',
  39. // 获取场馆详情
  40. getVenueDetail: API_BASE + '/v2/home/getVenueDetailById',
  41. // 获取班级详情
  42. getClassDetail: API_BASE + '/v2/home/getClassDetailById',
  43. // 获取新增统计数据
  44. getCensusInfo: API_BASE + '/v2/sale/home/getCustomerCreateStatisticsDetailCount',
  45. // 获取新增统计列表
  46. getCensusList: API_BASE + '/v2/sale/home/getCustomerCreateStatisticsDetailList',
  47. // 报表
  48. findGroupCustomerNum: API_BASE + '/v2/sale/center/findGroupCustomerNum',
  49. // 获取班级列表
  50. getClassList: API_BASE + '/v2/sale/customer/getClassList',
  51. // 获取礼物列表
  52. getGiftList: API_BASE + '/v2/sale/customer/getGiftList',
  53. // 获取销售员列表
  54. getSaleList: API_BASE + '/v2/sale/customer/getSaleList',
  55. // 获取谈单人列表
  56. getTalkerList: API_BASE + '/v2/sale/customer/getTalkerList',
  57. // 获取支付方式列表
  58. getPayTypeList: API_BASE + '/v2/sale/customer/getPayTypeList',
  59. // 根据订单二维码获取表单信息
  60. getQrCodeInfo: API_BASE + '/v2/sale/customer/getQrCodeInfo',
  61. // 提交已报名表单
  62. submitEnrolledForm: API_BASE + '/v2/sale/customer/joinCLass',
  63. // 无效
  64. updateCustomerState: API_BASE + '/v2/sale/customer/updateCustomerState',
  65. // 提交意向客户表单
  66. submitIntentionForm: API_BASE + '/v2/sale/customer/insertCustomer',
  67. // 获取全部客户列表
  68. getCustomerList: API_BASE + '/v2/sale/center/getCustomerList',
  69. // 获取客户合同
  70. getOrderContract: API_BASE + '/v2/sale/center/getOrderContract',
  71. // 获取客户报名列表
  72. getOrderList: API_BASE + '/v2/sale/center/getCustomerDetailList',
  73. // 获取客户报名详情
  74. getOrderInfo: API_BASE + '/v2/sale/center/getCustomerDetail',
  75. // 获取当月销售额
  76. getSaleSortInfo: API_BASE + '/v2/sale/center/getSaleSort',
  77. // 获取业绩销售列表
  78. getSaleSortList: API_BASE + '/v2/sale/center/getSaleSortList',
  79. // 获取续费提醒列表
  80. getRenewList: API_BASE + '/v2/sale/center/getRenewRemindList',
  81. // 获取续费学员详情
  82. getStudentInfo: API_BASE + '/v2/sale/center/getRenewalStudent',
  83. // 获取续费学员沟通记录列表
  84. getRecordList: API_BASE + '/v2/sale/center/getRenewalCommunicateRecordList',
  85. // 提交续费学员沟通记录表单
  86. submitRecordForm: API_BASE + '/v2/sale/center/writeRenewalCommunicateRecord',
  87. // 获取消息通知列表
  88. getMessageList: API_BASE + '/v2/sale/center/messageInform',
  89. // 获取数据统计
  90. getDataCensus: API_BASE + '/v2/sale/center/dataStatistics',
  91. // 获取小程序二维码
  92. getShareUrl: API_BASE + '/v2/sale/center/share',
  93. // 获取服务器端图片
  94. getServerImg: API_BASE + '/download/icon/',
  95. // 上传地址
  96. uploadFile: API_BASE + '/v2/common/file/uploadOne',
  97. // 获取首页场馆列表
  98. getVenueList: API_BASE + '/v2/home/getVenueNearbyList',
  99. // 学员预约
  100. subscribeStudent: API_BASE + '/v2/class/appointment',
  101. // 意向预约
  102. customerAppointment: API_BASE + '/v2/sale/customer/customerAppointment',
  103. // 新增客户
  104. joinCLass: API_BASE + '/v2/sale/customer/joinCLass',
  105. // 客户信息
  106. customerDetail: API_BASE + '/v2/sale/customer/customerDetail',
  107. // 添加追踪记录
  108. addResourceRecord: API_BASE + '/v2/sale/customer/addResourceRecord',
  109. // 查询追踪记录
  110. findResourceRecordList: API_BASE + '/v2/sale/customer/findResourceRecordList',
  111. // 销售员列表
  112. findGroups: API_BASE + '/v2/sale/group/findGroups',
  113. // 学员列表
  114. giftStudentPage: API_BASE + '/v2/sale/center/giftStudentPage',
  115. // 获取一级礼物
  116. findVenueGiftOneList: API_BASE + '/v2/sale/center/giftOneTypeList',
  117. //findVenueGiftOneList: API_BASE + '/v2/sale/center/findVenueGiftOneList',
  118. // 获取二级礼物
  119. findVenueGiftTwoList: API_BASE + '/v2/sale/center/giftTwoTypeList',
  120. //findVenueGiftTwoList: API_BASE + '/v2/sale/center/findVenueGiftTwoList',
  121. // 赠送
  122. giveGiftStudent: API_BASE + '/v2/sale/center/giveGiftStudent',
  123. // 不送
  124. giveGiftRefuse: API_BASE + '/v2/sale/center/giveGiftRefuse',
  125. // 修改头像
  126. customerHeadSet: API_BASE + '/v2/sale/customer/customerHeadSet',
  127. // 获取支付方式
  128. getPayTypeList: API_BASE + '/v2/sale/customer/getPayTypeList',
  129. }