api.js 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import ajax from '../utils/request.js'
  2. export default {
  3. // 获取注册身份下拉框信息
  4. getIdentifyList(data) {
  5. return ajax.get('/sp-admin/app/AppRole/getList', data)
  6. },
  7. //服务协议
  8. getAgreement(data) {
  9. return ajax.get('/level-one-server/app/TbAgreement/getById', data)
  10. },
  11. // 轮播图
  12. getBanner(data) {
  13. return ajax.get('/level-one-server/app/TbBanner/getList', data)
  14. },
  15. // 首页菜单
  16. getMenu(data) {
  17. return ajax.get('/sp-admin/ReRoleMenu/getList', data)
  18. },
  19. //登录
  20. doLogin(data) {
  21. return ajax.postForm('/sp-admin/app/AppUser/login', data)
  22. },
  23. //获取注册手机验证码
  24. getPhoneSmsCode() {
  25. return ajax.get('/sp-admin/app/AppUser/getPhoneSmsCode')
  26. },
  27. //注册
  28. doRefister(data) {
  29. return ajax.postJson('/sp-admin/app/AppUser/register', data)
  30. },
  31. //获取轮播图
  32. getBannerList() {
  33. return ajax.get('/level-one-server/app/TbBanner/getList')
  34. },
  35. //获取最新资讯
  36. getNewestList(data) {
  37. return ajax.get('/level-one-server/app/TbPortNews/getNewestList', data)
  38. }
  39. }