tp.js 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import request from '@/utils/request'
  2. // 投票活动详情
  3. export function ptDetail(data) {
  4. return request({
  5. url: '/api/vote/3',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. //投票
  11. export function ptPush(data,uid) {
  12. return request({
  13. url: '/api/vote/'+uid,
  14. method: 'post',
  15. data
  16. });
  17. }
  18. // 投票活动详情
  19. export function ptJoin(data) {
  20. return request({
  21. url: '/api/vote/join/3',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 投票用户信息
  27. export function getItemInfo(data,uid) {
  28. return request({
  29. url: '/api/vote/join/detail/'+uid,
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 我要报名
  35. export function pushJoin(data) {
  36. return request({
  37. url: '/api/vote/join/3',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 公众号充值
  43. export function rechargeWechat(data) {
  44. return request({
  45. url: '/api/recharge/wechat',
  46. method: 'post',
  47. data
  48. });
  49. }