api.js 5.3 KB

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