学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
5.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. var http = uni.$u.http
  2. // 隐私政策
  3. export const getAgreement = (params, config = {}) => http.post('/util/manage/getAgreement.do', params, config)
  4. // 验证码登录
  5. export const loginSMS = (data) => http.post('member/auth/sms-login', data, { custom: { noToken: true }})
  6. // 登录发验证码
  7. export const getLoginCode = (data) => http.post('member/auth/send-sms-code', data, { custom: { noToken: true }})
  8. // 获取个人信息
  9. export const getUserInfo = (data) => http.post('member/user/get', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}})
  10. // 退出登录
  11. export const logOut = (data={}) => http.post('member/auth/logout', data,)
  12. // 驾校列表分页
  13. export const schoolPage = (params) => http.get('business/school/page', {params: params})
  14. // 附近场地
  15. export const getexamSite = (params) => http.get('business/school/getexamSite', {params: params})
  16. // 考场详情
  17. export const getExamSiteDatil = (params) => http.get('business/school/getExamSiteDatil', {params: params})
  18. // 考场资讯
  19. export const getExamSiteInfo = (params) => http.get('business/school/getExamSiteInfo', {params: params})
  20. // 创建驾校评价
  21. export const addSchoolComment = (data={}) => http.post('business/appcomplain/addSchoolComment', data,)
  22. // 创建教练评价
  23. export const addCoachComment = (data={}) => http.post('business/appcomplain/addCoachComment', data,)
  24. // 我的评价
  25. export const getUsersCommentById = (params) => http.get('business/appcomplain/getUsersById', {params: params})
  26. // 获取已报名驾校
  27. export const getStudentinfo = (params) => http.get('business/appcomplain/getStudentinfo', {params: params})
  28. // 驾校评论分页
  29. export const getSchoolListComment = (params) => http.get('business/school/getListComment', {params: params})
  30. // 教练评价分页
  31. export const getListCoachComment = (params) => http.get('business/school/getListCoach', {params: params})
  32. // 驾校详情
  33. export const getSchoolDetail = (params) => http.get('business/school/getSchool', {params: params})
  34. // 驾校班型
  35. export const schoolClass = (params) => http.get('business/school-class/page', {params: params})
  36. // 教练列表分页
  37. export const coachPage = (params) => http.get('business/coach/page', {params: params})
  38. // 公益视频
  39. export const publicVideoPage = (params) => http.get('business/video/page', {params: params})
  40. // 公益视频 详情
  41. export const publicGetvideo = (params) => http.get('business/video/getvideo', {params: params})
  42. // 公益视频点赞
  43. export const createUpvote = (data) => http.post('business/contentdata/createUpvote', data)
  44. // 公益视频取消点赞 upvoteId
  45. export const deleteUpvote = (data) => http.delete(`/business/contentdata/deleteUpvote?upvoteId=${data.upvoteId}&mobile=${data.mobile}`)
  46. // 公益视频收藏
  47. export const createCollect = (data) => http.post('business/contentdata/createCollect', data)
  48. // 公益视频取消收藏 CollectId
  49. export const deleteRetransmission = (data) => http.delete(`business/contentdata/deleteCollect?collectId=${data.CollectId}&mobile=${data.mobile}`)
  50. // 公益视频分享
  51. export const createRetransmission = (data) => http.post('business/contentdata/createRetransmission', data)
  52. // 公益视频是否点赞收藏
  53. export const getlikesCollection = (params) => http.get('business/users/getContent', {params: params})
  54. // 公益视频我的收藏
  55. export const getcollectVideo = (params) => http.get('business/users/getcollectVideo', {params: params})
  56. // 行业资讯,
  57. export const getarticleList = (params) => http.get('business/video/article', {params: params})
  58. // 行业政策
  59. export const getarticlezcList = (params) => http.get('business/video/articlezc', {params: params})
  60. // 行业资讯,行业政策 详情
  61. export const getarticle = (params) => http.get('business/video/getarticle', {params: params})
  62. // 创建咨询
  63. export const createconsult = (data) => http.post('business/appcomplain/createconsult', data)
  64. // 创建投诉
  65. export const createcomplain = (data) => http.post('business/appcomplain/createcomplain', data)
  66. // 关闭投诉/咨询
  67. export const consultationClosed = (params) => http.get('business/appcomplain/closed', {params: params})
  68. // 投诉类型
  69. export const consultationType = (params) => http.get('system/dict/consultationType',)
  70. // 投诉咨询记录
  71. export const studentComplain = (params) => http.get('business/appcomplain/studentComplain', {params: params})
  72. // 常见问题
  73. export const askedQuestion = (params) => http.get('business/complainqa/page', {params: params})
  74. // 获取地区
  75. export const areaTree = () => http.get('system/area/tree', )
  76. // 驾照类型
  77. export const licenseType = () => http.get('system/dict/licenseType', )
  78. // 区域
  79. export const nachangList = () => http.get('system/area/nachangList', )
  80. // 线上提交学员报名信息
  81. export const applyOnline = (data) => http.post('app/student-record/applyOnline', data)
  82. // 人脸核身---获取BizToken
  83. export const getpersonface = (params) => http.get('app/student-record/getpersonface', {params})
  84. // 人脸核身结果查询
  85. export const GetDetectInfoEnhanced = (params) => http.get('app/student-record/GetDetectInfoEnhanced', {params})
  86. // 证件类型获取
  87. export const getCardType = (params) => http.get('system/dict/cardType', {params})
  88. // // 获得合同信息
  89. // export const getContract = (params) => http.get('business/contract/get', {params})
  90. // // 创建合同信息
  91. // export const contractCreate = (data) => http.post('business/contract/create', data)
  92. // // 获取驾校的合同
  93. // export const getSchoolContract = (params) => http.get('business/contract/getSchoolContract', {params})
  94. // 获取合同链接
  95. export const getSignContract = (data) => http.post('business/contract/signContract', data)
  96. // 查询学员合同签署状态
  97. export const getContractStatus = (params) => http.get('business/contract/getContractStatus', {params})