api.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. const API_BASE = 'https://xinghuolanqiu.com/newApi'
  2. module.exports = {
  3. // 微信授权登录
  4. wxLogin: API_BASE + '/v2/student/login/wxLogin',
  5. // 账号密码登录
  6. loginByPassword: API_BASE + '/v2/student/login/login',
  7. // 更换昵称头像
  8. changeWxInfo: API_BASE + '/v2/student/login/changeWxInfo',
  9. // 根据经纬度获取位置
  10. getAddressInfo: API_BASE + '/v2/location/pointToAddress',
  11. // 获取订阅模板
  12. getTemplate: API_BASE + '/v2/student/myCenter/getTemplate',
  13. // 获取首页轮播图列表
  14. getIndexSwiperList: API_BASE + '/v2/home/getRollAdvertisingHomeList',
  15. // 获取首页场馆列表
  16. getVenueList: API_BASE + '/v2/home/getVenueNearbyList',
  17. // 获取场馆详情
  18. getVenueDetail: API_BASE + '/v2/home/getVenueDetailById',
  19. // 获取班级详情
  20. getClassDetail: API_BASE + '/v2/home/getClassDetailById',
  21. // 获取首页精彩瞬间列表
  22. getVideoList: API_BASE + '/v2/home/getCourseShowNearbyList',
  23. // 获取可报名学员列表
  24. getEnlistAbleStudent: API_BASE + '/v2/class/selectApplyList',
  25. // 获取会员服务班级详情
  26. getMemberClassDetail: API_BASE + '/v2/class/getDetail',
  27. // 获取我的班级全部请假列表
  28. getAllLeaveList: API_BASE + '/v2/class/getAllLeaveList',
  29. // 学员报名
  30. enlistStudent: API_BASE + '/v2/class/apply',
  31. // 获取可预约学员列表
  32. getSubscribeAbleList: API_BASE + '/v2/class/selectStudent',
  33. // 学员预约
  34. subscribeStudent: API_BASE + '/v2/class/appointment',
  35. // 提交新增学员表单
  36. submitStudentForm: API_BASE + '/v2/student/info/add',
  37. // 提交学员预约表单
  38. submitSubscribelForm: API_BASE + '/v2/class/appointment',
  39. // 提交请假表单
  40. submitLevelForm: API_BASE + '/v2/class/leaveSubmit',
  41. // 提交评价表单
  42. submitEvaluateForm: API_BASE + '/v2/class/estimateSubmit',
  43. // 提交成长历程
  44. submitGrowForm: API_BASE + '/v2/class/addGrow',
  45. // 获取我的账户
  46. getMemberInfo: API_BASE + '/v2/student/myCenter/getMemberInfo',
  47. // 获取我的课程列表
  48. getMyClassList: API_BASE + '/v2/class/getList',
  49. // 获取我的请假列表
  50. getLeaveList: API_BASE + '/v2/class/getLeaveList',
  51. // 获取我的订单列表
  52. getOrderList: API_BASE + '/v2/student/myCenter/getOrderByState',
  53. // 获取我的学员列表
  54. getStudentList: API_BASE + '/v2/student/myCenter/selectStudent',
  55. // 获取我的优惠券列表
  56. getCouponList: API_BASE + '/v2/student/myCenter/getCouponList',
  57. // 获取分享有礼二维码
  58. getShareUrl: API_BASE + '/v2/student/myCenter/share',
  59. // 获取我的评价列表
  60. getEvaluateList: API_BASE + '/v2/student/myCenter/getClassEvaluateList',
  61. // 获取我的预约体验列表
  62. getSubscribeList: API_BASE + '/v2/student/myCenter/getSubscribeClassEvaluateList',
  63. // 获取可购买会员卡列表
  64. getMemberCardList: API_BASE + '/v2/student/myCenter/getCardTypeList',
  65. // 获取可购买会员卡信息
  66. getMemberCardInfo: API_BASE + '/v2/student/myCenter/getMemberDetailAfterCoupon',
  67. // 获取可购买会员卡所有场馆
  68. getAllVenueList: API_BASE + '/v2/student/myCenter/getAllVenueList',
  69. // 获取前用户家长信息
  70. getParentInfo: API_BASE + '/v2/student/contract/getUserInfo',
  71. // 获取可用优惠券列表
  72. getUsableCouponList: API_BASE + '/v2/student/myCenter/getOwnCouponList',
  73. // 获取可购买会员卡学员列表
  74. getAllStudentList: API_BASE + '/v2/student/myCenter/selectAllStudent',
  75. // 获取合同模板
  76. getContractInfo: API_BASE + '/v2/student/contract/download',
  77. // 提交签字合同表单
  78. submitContractForm: API_BASE + '/v2/student/contract/submit',
  79. // 提交签字合同表单 其他方式支付
  80. getPayParams0: API_BASE + '/v2/student/myCenter/getCashPayParams',
  81. // 获取支付回调数据
  82. getPayParams: API_BASE + '/v2/student/myCenter/getWxPayParams',
  83. // 获取支付结果
  84. getPayResult: API_BASE + '/v2/student/myCenter/getPayResult',
  85. // 获取服务器端图片
  86. getServerImg: API_BASE + '/download/icon/',
  87. // 上传地址
  88. uploadFile: API_BASE + '/v2/common/file/uploadOne',
  89. }