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

home.js 756B

1 year ago
1 year ago
12345678910111213141516171819202122232425262728293031323334353637
  1. const {request} = require("../request/index")
  2. // 获取公告
  3. export const getAnnounce = function(params) {
  4. return request({
  5. url: '/index/westreamAct/page',
  6. method: 'GET',
  7. data:params
  8. })
  9. }
  10. // 获取在线人数
  11. export const getOnlive = function(params) {
  12. return request({
  13. url: '/westreamUser/onlineNum',
  14. method: 'GET',
  15. data:params
  16. })
  17. }
  18. // 获取河流全部数据
  19. export const getRivers = function(params) {
  20. return request({
  21. url: '/stream/indexAll',
  22. method: 'GET',
  23. data:params
  24. })
  25. }
  26. // 上传美拍
  27. export const uploadBeauty = function(data) {
  28. return request({
  29. url: '/index/westreamScenery/submit',
  30. method: 'POST',
  31. data
  32. })
  33. }