tp.js 678 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import request from '@/utils/request'
  2. // 投票活动详情
  3. export function ptDetail(data) {
  4. return request({
  5. url: '/api/vote/1',
  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/1',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 我要报名
  27. export function pushJoin(data) {
  28. return request({
  29. url: '/api/vote/join/1',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 公众号充值
  35. export function rechargeWechat(data) {
  36. return request({
  37. url: '/api/recharge/wechat',
  38. method: 'post',
  39. data
  40. });
  41. }