api.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // const API_BASE = 'https://xinghuolanqiu.com/newApi'
  2. //const API_BASE = 'http://192.168.1.126:30000'
  3. //const API_BASE = 'http://www.jihengcc.cn:17080/newApi'
  4. //const API_BASE = 'http://192.168.1.117:8089'
  5. // const API_BASE = 'http://192.168.1.109/newApi'
  6. // const API_BASE = 'http://192.168.1.145/newApi'
  7. // const API_BASE = 'http://starfire.jihengcc.cn/newApi'
  8. //const API_BASE = 'https://starfire.jihengcc.cn/newApi'
  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.126:30000'
  14. // const API_BASE = 'http://192.168.1.117:8089'
  15. module.exports = {
  16. // 微信授权登录
  17. wxLogin: API_BASE + '/v2/coach/login/wxLogin',
  18. // 账号密码登录
  19. loginByPassword: API_BASE + '/v2/coach/login/login',
  20. // 提交补课表单
  21. submitExtraLessonsForm: API_BASE + '/v2/sale/class/extraLessonsSubmit',
  22. // 获取补课学员列表
  23. getExtraLessonsStudentList: API_BASE + '/v2/sale/class/extraLessonsStudentList',
  24. // 获取我的班级列表
  25. getClassList: API_BASE + '/v2/sale/class/getClassList',
  26. // 获取场馆列表列表
  27. getVenueList: API_BASE + '/v2/sale/class/getVenueList',
  28. // 获取我的排班列表
  29. getTimetableList: API_BASE + '/v2/sale/class/getClassSort',
  30. // 提交新建班级表单
  31. submitClassForm: API_BASE + '/v2/sale/class/create',
  32. // 获取班级详情
  33. getClassDetail: API_BASE + '/v2/sale/class/getDetail',
  34. // 班级信息修改
  35. classUpdate: API_BASE + '/v2/sale/class/update',
  36. // 班级删除
  37. deleteById: API_BASE + '/v2/sale/class/deleteById',
  38. // 获取班级近况
  39. getClassDetailShowList: API_BASE + '/v2/sale/class/getClassDetailShowList',
  40. // 教练近况发布
  41. insertClassShow: API_BASE + '/v2/sale/class/insertClassShow',
  42. // 教练近况删除
  43. deleteClassShow: API_BASE + '/v2/sale/class/deleteClassShow',
  44. // 获取学员详情
  45. getStudentDetail: API_BASE + '/v2/sale/class/getStudentDetail',
  46. // 提交历程表单
  47. submitCourseForm: API_BASE + '/v2/sale/class/addGrow',
  48. // 获取本课程学员列表
  49. getSignStudentList: API_BASE + '/v2/sale/class/getSignStudentList',
  50. // 获取非本课程学员列表
  51. getOtherSignStudentList: API_BASE + '/v2/sale/class/getOtherSignStudentList',
  52. // 获取班级修改详情
  53. findById: API_BASE + '/v2/sale/class/findById',
  54. // 提交签到表单
  55. submitSignForm: API_BASE + '/v2/sale/class/signSubmit',
  56. // 班级详情->扫码
  57. classCourseWriteOff: API_BASE + '/v2/sale/class/classCourseWriteOff',
  58. // 班级详情->请假详情
  59. leaveLessonsInfo: API_BASE + ' /v2/sale/class/leaveLessonsInfo',
  60. // 班级详情->续费卡列表
  61. stuRenewalCardList: API_BASE + ' /v2/sale/class/stuRenewalCardList',
  62. // 班级详情->续费卡->确认
  63. openRenewalCard: API_BASE + ' /v2/sale/class/openRenewalCard',
  64. // 班级详情-> 病假结束确认
  65. leaveLessonsEndOk: API_BASE + '/v2/sale/class/leaveLessonsEndOk',
  66. // 获取消息通知列表
  67. getMessageList: API_BASE + '/v2/coach/message/getMessageList',
  68. // 消息请假同意
  69. leaveLessonsOk: API_BASE + '/v2/coach/center/leaveLessonsOk',
  70. // 获取我的评价列表
  71. getEvaluateList: API_BASE + '/v2/coach/center/getRatingList',
  72. // 获取我的评价详情
  73. getEvaluateInfo: API_BASE + '/v2/coach/center/getRatingDetail',
  74. // 教练回复
  75. setSignRemark: API_BASE + '/v2/class/setSignRemark',
  76. // 获取我的补课记录列表
  77. getExtraLessonsList: API_BASE + '/v2/coach/center/getExtraLessonsList',
  78. // 获取我的请假记录列表
  79. getLeaveLessonsList: API_BASE + '/v2/coach/center/getLeaveLessonsList',
  80. // 获取我的续费提醒列表
  81. getRenewList: API_BASE + '/v2/coach/center/getSignReminderList',
  82. // 获取我的签到提醒列表
  83. getSignList: API_BASE + '/v2/coach/center/getRenewalReminderList',
  84. // 获取我的签到学员详情
  85. getSignStudentInfo: API_BASE + '/v2/coach/center/getSignStudentList',
  86. // 获取续费学员沟通记录列表
  87. getRenewCommunicateList: API_BASE + '/v2/coach/center/getRenewalCommunicateRecordList',
  88. // 获取签到学员沟通记录列表
  89. getSignCommunicateList: API_BASE + '/v2/coach/center/getSignCommunicateRecordList',
  90. // 提交续费学员沟通记录表单
  91. submitRenewCommunicateForm: API_BASE + '/v2/coach/center/writeRenewalCommunicateRecord',
  92. // 提交签到学员沟通记录表单
  93. submitSignCommunicateForm: API_BASE + '/v2/coach/center/writeSignCommunicateRecord',
  94. // 获取续费率
  95. getRenewPercent: API_BASE + '/v2/coach/center/getRenewPercent',
  96. // 获取续费率排名列表
  97. getRenewRankingList: API_BASE + '/v2/coach/center/getRenewRankingList',
  98. // 获取签到率
  99. getSignPercent: API_BASE + '/v2/coach/center/getSignPercent',
  100. // 获取签到率排名列表
  101. getSignRankingList: API_BASE + '/v2/coach/center/getSignRankingList',
  102. // 获取服务器端图片
  103. getServerImg: API_BASE + '/download/icon/',
  104. // 上传地址
  105. uploadFile: API_BASE + '/v2/common/file/uploadOne',
  106. }