ask.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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',
  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. }
  59. //机构搜索
  60. export function mechanism(data) {
  61. return request({
  62. url: '/api/mechanism',
  63. method: 'get',
  64. data
  65. });
  66. }
  67. // 捐款意向 chosintention
  68. export function chosintention(data) {
  69. return request({
  70. url: '/api/lave/ify',
  71. method: 'get',
  72. data
  73. });
  74. }
  75. // 爱心捐赠 joinDona 提交
  76. export function joinDona(data) {
  77. return request({
  78. url: '/api/intention',
  79. method: 'get',
  80. data
  81. });
  82. }
  83. // 捐赠列表 getDonaList
  84. export function getDonaList(data) {
  85. return request({
  86. url: '/api/bulletin',
  87. method: 'get',
  88. data
  89. });
  90. }
  91. // 我的捐赠 MyDonaList
  92. export function MyDonaList(data) {
  93. return request({
  94. url: '/api/lave/mylst',
  95. method: 'get',
  96. data
  97. });
  98. }
  99. // 获得证书 getCertificate
  100. export function getCertificate(data) {
  101. return request({
  102. url: '/api/detail_training',
  103. method: 'get',
  104. data
  105. });
  106. }