学员端小程序
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.

38 lines
1.6 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. 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 coachPage = (params) => http.get('business/coach/page', {params: params})
  16. // 公益视频
  17. export const publicVideoPage = (params) => http.get('business/video/page', {params: params})
  18. // 公益视频 详情
  19. export const publicGetvideo = (params) => http.get('business/video/getvideo', {params: params})
  20. // 行业资讯,
  21. export const getarticleList = (params) => http.get('business/video/article', {params: params})
  22. // 行业政策
  23. export const getarticlezcList = (params) => http.get('business/video/articlezc', {params: params})
  24. // 行业资讯,行业政策 详情
  25. export const getarticle = (params) => http.get('business/video/getarticle', {params: params})
  26. // 驾照类型
  27. export const licenseType = () => http.get('system/dict/licenseType', )
  28. // 区域
  29. export const nachangList = () => http.get('system/area/nachangList', )