拓恒河湖长制全民护河平台WEB端
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.

64 satır
1.1KB

  1. const {request} = require("../request/index")
  2. /**
  3. * 获取openId
  4. */
  5. export const getOpenId = function (code) {
  6. return request({
  7. url: `/wx/openIdAndUnionId/${code}`,
  8. method: 'GET',
  9. })
  10. }
  11. /**
  12. * 获取用户信息
  13. */
  14. export const getUserData = function (params) {
  15. return request({
  16. url: '/westreamUser/userInfo',
  17. method: 'GET',
  18. data: params
  19. })
  20. }
  21. /**
  22. * 查询省市区对应城市代码
  23. */
  24. export const getCityNameCode = function (data) {
  25. return request({
  26. url: '/city/cityNameAndCode',
  27. method: 'GET',
  28. data
  29. })
  30. }
  31. /**
  32. * 查询省市区对应租户数据
  33. */
  34. export const getTenantData = function (data) {
  35. return request({
  36. url: '/index/tenants/areaCode',
  37. method: 'GET',
  38. data
  39. })
  40. }
  41. /**
  42. * 进入小程序,记录次数
  43. */
  44. export const enterMini = function (data) {
  45. return request({
  46. url: '/westreamUser/login',
  47. method: 'POST',
  48. data
  49. })
  50. }
  51. /**
  52. * 在线心跳
  53. */
  54. export const IsOnlive = function (data) {
  55. return request({
  56. url: '/index/westreamUser/edit',
  57. method: 'PUT',
  58. data
  59. })
  60. }