system.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-02-07 13:40:50
  4. * @LastEditTime: 2021-12-02 15:59:52
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \vue3-element-admin\src\api\modules\system.js
  8. */
  9. // const Mock = require("mockjs"); //引入
  10. const config = require("../config")
  11. module.exports = {
  12. login: {
  13. url: config.base_url + "user/login",
  14. type: "post",
  15. },
  16. phoneLogin:{
  17. url: config.base_url + "user/phone_login",
  18. type: "post",
  19. },
  20. getCfg: {
  21. url: config.base_url + "cfg/get",
  22. type: "post",
  23. },
  24. weather:{
  25. url:config.base_url + "lz_weather7d/get/{organId}",
  26. type:"get"
  27. },
  28. townList:{
  29. url: config.base_url + "town/list",
  30. type:"get"
  31. },
  32. townDropdown:{
  33. url: config.base_url + "town/dropdown",
  34. type:"get"
  35. },
  36. getTown:{
  37. url: config.base_url + "town/get",
  38. type:"get"
  39. },
  40. getArea:{
  41. url: config.base_url + "lz_area/get",
  42. type:"get"
  43. },
  44. getDistrict:{
  45. url: config.base_url + "district/get",
  46. type:"get"
  47. },
  48. getGuangzhou:{
  49. url: config.base_url + "district/getGuangzhou",
  50. type:"get"
  51. },
  52. findGuangzhouDistrict:{
  53. url: config.base_url + "district/findGuangzhouDistrict",
  54. type:"get"
  55. }
  56. };