index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 首页
  3. export function getApplet(data) {
  4. return request({
  5. 'url': '/applet/index',
  6. 'method': 'post',
  7. 'data':data
  8. })
  9. }
  10. // 准备放学
  11. export function getAppxiaKe(data) {
  12. return request({
  13. 'url': '/applet/xiaKe',
  14. 'method': 'post',
  15. 'data':data
  16. })
  17. }
  18. // 首页列表
  19. export function getApplist(data) {
  20. return request({
  21. 'url': '/applet/indexList',
  22. 'method': 'post',
  23. 'data':data
  24. })
  25. }
  26. //
  27. export function getTablenow(data) {
  28. return request({
  29. 'url': '/course/table/now',
  30. 'method': 'get',
  31. 'data':data
  32. })
  33. }
  34. // 家长放学时间
  35. export function getxiaKeTime(data) {
  36. return request({
  37. 'url': '/applet/xiaKeTime',
  38. 'method': 'post',
  39. 'data':data
  40. })
  41. }
  42. //定位信息orientation:info:add
  43. export function getAdrinfo(data) {
  44. return request({
  45. 'url': '/orientation/info',
  46. 'method': 'post',
  47. 'data':data
  48. })
  49. }
  50. // 家长 包含的学校
  51. export function getptenantList(data) {
  52. return request({
  53. 'url': '/auth/parents/tenant/list',
  54. 'method': 'get',
  55. })
  56. }
  57. // 切换学校
  58. export function gettenantCheck(data) {
  59. return request({
  60. 'url': '/system/tenant/dynamic/'+data,
  61. 'method': 'get',
  62. })
  63. }