ask.js 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. import { upFilse } from '@/utils/request';
  3. //上传救护者信息
  4. export function addrescuer(data){
  5. return request({
  6. url:'/api/add_rescuer',
  7. method:'post',
  8. data
  9. })
  10. }
  11. //上传图片
  12. export function upload(data){
  13. return upFilse({
  14. url:'/api/upload/image',
  15. method:'post',
  16. data
  17. })
  18. }
  19. //发表文章
  20. export function articlesave(data) {
  21. return request({
  22. url: '/api/circle/articlesave',
  23. method: 'post',
  24. data
  25. });
  26. }
  27. //我发表的文章
  28. export function myarticle(data) {
  29. return request({
  30. url: '/api/circle/myarticle',
  31. method: 'post',
  32. data
  33. });
  34. }
  35. //发表评论
  36. export function replyask(data) {
  37. return request({
  38. url: '/api/add_a',
  39. method: 'post',
  40. data
  41. });
  42. }
  43. //问答详情
  44. export function replylist(data) {
  45. return request({
  46. url: '/api/q_list',
  47. method: 'get',
  48. data
  49. });
  50. }
  51. //评论列表
  52. export function myreplylist(data) {
  53. return request({
  54. url: '/api/a_list',
  55. method: 'get',
  56. data
  57. });
  58. }