拓恒河湖长制全民护河平台WEB端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

41 lines
740B

  1. const {request} = require("../request/index")
  2. /**
  3. * 获取openId
  4. */
  5. export const getOpenId = function (code) {
  6. return request({
  7. url: `/wx/openid/${code}`,
  8. method: 'GET',
  9. })
  10. }
  11. /**
  12. * 获取openId
  13. */
  14. export const getUserData = function (openid) {
  15. return request({
  16. url: `/wx/westreamUser/${openid}`,
  17. method: 'GET',
  18. })
  19. }
  20. /**
  21. * 查询省市区对应城市代码
  22. */
  23. export const getCityNameCode = function (data) {
  24. return request({
  25. url: '/city/cityNameAndCode',
  26. method: 'GET',
  27. data
  28. })
  29. }
  30. /**
  31. * 在线心跳
  32. */
  33. export const IsOnlive = function (data) {
  34. return request({
  35. url: '/index/westreamUser/edit',
  36. method: 'PUT',
  37. data
  38. })
  39. }