api.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.145/newApi'
  4. // const API_BASE = 'http://39.99.241.14/newApi'
  5. let API_BASE = 'https://starfire.jihengcc.cn/newApi'
  6. //let API_BASE = 'http://192.168.1.117:8089/'
  7. if(Date.parse(new Date())>1660190400000){
  8. //API_BASE = 'http://192.168.0.117:30000/'
  9. API_BASE = 'https://xinghuolanqiu.com/newApi'
  10. }
  11. // const API_BASE = 'http://192.168.1.109/newApi'
  12. // const API_BASE = 'http://192.168.1.117:8089/'
  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/student/login/wxLogin',
  18. // 账号密码登录
  19. loginByPassword: API_BASE + '/v2/student/login/login',
  20. // 更换昵称头像
  21. changeWxInfo: API_BASE + '/v2/student/login/changeWxInfo',
  22. // 根据经纬度获取位置
  23. getAddressInfo: API_BASE + '/v2/location/pointToAddress',
  24. // 获取订阅模板
  25. getTemplate: API_BASE + '/v2/student/myCenter/getTemplate',
  26. // 根据省市区code获取场馆
  27. getCodeVenueList: API_BASE + '/v2/student/myCenter/getCodeVenueList',
  28. // 获取首页轮播图列表
  29. getIndexSwiperList: API_BASE + '/v2/home/getRollAdvertisingHomeList',
  30. // 获取首页场馆列表
  31. // v2
  32. // getVenueList: API_BASE + '/v2/home/getVenueNearbyList',
  33. // v3
  34. getVenueList: API_BASE + '/sgai/venue/get4ShortestVenue',
  35. // 获取场馆详情
  36. getVenueDetail: API_BASE + '/v2/home/getVenueDetailById',
  37. // 获取班级详情
  38. getClassDetail: API_BASE + '/v2/home/getClassDetailById',
  39. // 获取首页精彩瞬间列表
  40. getVideoList: API_BASE + '/v2/home/getCourseShowNearbyList',
  41. // 获取可报名学员列表
  42. getEnlistAbleStudent: API_BASE + '/v2/class/selectApplyList',
  43. // 获取会员服务班级详情
  44. getMemberClassDetail: API_BASE + '/v2/class/getDetail',
  45. // 获取我的班级全部请假列表
  46. getAllLeaveList: API_BASE + '/v2/class/getAllLeaveList',
  47. // 获取评论
  48. getSignRemark: API_BASE + '/v2/class/getSignRemark',
  49. // 评论
  50. setSignRemark: API_BASE + '/v2/class/setSignRemark',
  51. // 学员报名
  52. enlistStudent: API_BASE + '/v2/class/apply',
  53. // 我的请假记录
  54. stuLeaveLessonsList: API_BASE + '/v2/student/myCenter/stuLeaveLessonsList',
  55. // 获取可预约学员列表
  56. getSubscribeAbleList: API_BASE + '/v2/class/selectStudent',
  57. // 学员预约
  58. appointment: API_BASE + '/v2/class/appointment',
  59. // 提交新增学员表单
  60. submitStudentForm: API_BASE + '/v2/student/info/add',
  61. // 修改学员表单
  62. updateStudentForm: API_BASE + '/v2/student/info/update',
  63. // 提交学员预约表单
  64. submitSubscribelForm: API_BASE + '/v2/class/appointment',
  65. // 提交请假表单
  66. submitLevelForm: API_BASE + '/v2/class/leaveSubmit',
  67. // 提交评价表单
  68. submitEvaluateForm: API_BASE + '/v2/class/estimateSubmit',
  69. // 提交成长历程
  70. submitGrowForm: API_BASE + '/v2/class/addGrow',
  71. // 获取我的账户
  72. getMemberInfo: API_BASE + '/v2/student/myCenter/getMemberInfo',
  73. // 获取我的课程列表
  74. getMyClassList: API_BASE + '/v2/class/getList',
  75. // 获取我的请假列表
  76. getLeaveList: API_BASE + '/v2/class/getLeaveList',
  77. // 获取我的订单列表
  78. getOrderList: API_BASE + '/v2/student/myCenter/getOrderByState',
  79. // 获取我的学员列表
  80. getStudentList: API_BASE + '/v2/student/myCenter/selectStudent',
  81. // 获取我的优惠券列表
  82. getCouponList: API_BASE + '/v2/student/myCenter/getCouponList',
  83. // 专用优惠券可使用场馆
  84. getCouponExInfo: API_BASE + '/v2/student/myCenter/getCouponExInfo',
  85. // 获取分享有礼二维码
  86. getShareUrl: API_BASE + '/v2/student/myCenter/share',
  87. // 获取二维码信息
  88. getQrcodeInfo: API_BASE + '/v2/sale/center/bindShareId',
  89. // 获取我的评价列表
  90. getEvaluateList: API_BASE + '/v2/student/myCenter/getClassEvaluateList',
  91. // 获取我的签到评价列表
  92. findSignEvaluate: API_BASE + '/v2/class/findSignEvaluate',
  93. // 获取我的预约体验列表
  94. getSubscribeList: API_BASE + '/v2/admin/subscribe/getSubscribeClassEvaluateList',
  95. // 查询场馆下 班级列表
  96. getClassListByVenueId: API_BASE + '/course/getClassListByVenueId',
  97. // 查询所有教练列表
  98. getCoachListAll: API_BASE + '/coach/getCoachList.do',
  99. // 查询教练列表
  100. getCoachList: API_BASE + '/common/coach/getCoachList',
  101. // 保存预约信息
  102. updateAppointment: API_BASE + '/v2/admin/subscribe/updateAppointment',
  103. // 获取可购买会员卡列表
  104. getMemberCardList: API_BASE + '/v2/student/myCenter/getCardTypeList',
  105. // 获取可购买会员卡信息
  106. getMemberCardInfo: API_BASE + '/v2/student/myCenter/getMemberDetailAfterCoupon',
  107. // 获取可购买会员卡所有场馆
  108. getAllVenueList: API_BASE + '/v2/student/myCenter/getAllVenueList',
  109. // 获取前用户家长信息
  110. getParentInfo: API_BASE + '/v2/student/contract/getUserInfo',
  111. // 获取可用优惠券列表
  112. getUsableCouponList: API_BASE + '/v2/student/myCenter/getOwnCouponList',
  113. // 获取当前用户绑定的学员
  114. getUserStudent: API_BASE + '/v2/admin/student/getUserStudent',
  115. // 根据学员获取二维码
  116. studentQRcode: API_BASE + '/v2/sale/center/studentQRcode',
  117. // 根据学员获取剩余课时
  118. getGiveLessons: API_BASE + '/v2/admin/leave/getGiveLessons',
  119. // 获取可购买会员卡学员列表
  120. getAllStudentList: API_BASE + '/v2/student/myCenter/selectAllStudent',
  121. // 获取合同模板
  122. getContractInfo: API_BASE + '/v2/student/contract/download',
  123. // 提交签字合同表单
  124. submitContractForm: API_BASE + '/v2/student/contract/submit',
  125. // 提交签字合同表单 其他方式支付
  126. getPayParams0: API_BASE + '/v2/student/myCenter/getCashPayParams',
  127. // 获取支付回调数据
  128. getPayParams: API_BASE + '/v2/student/myCenter/getWxPayParams',
  129. // 获取支付结果
  130. getPayResult: API_BASE + '/v2/student/myCenter/getPayResult',
  131. // 获取服务器端图片
  132. getServerImg: API_BASE + '/download/icon/',
  133. // 上传地址
  134. uploadFile: API_BASE + '/v2/common/file/uploadOne',
  135. // 删除订单退还优惠券
  136. delete: API_BASE + '/v2/admin/order/delete',
  137. }