sign.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import request from '@/utils/request'
  2. // 获取签到列表
  3. export function signList(data) {
  4. return request({
  5. url: '/api/sign/list',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 点击签到
  11. export function integral(data) {
  12. return request({
  13. url: '/api/sign/integral',
  14. method: 'post',
  15. data
  16. });
  17. }
  18. // 签到信息
  19. export function signUser(data) {
  20. return request({
  21. url: '/api/sign/user',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. // 抽奖详情
  27. export function getgacha(data) {
  28. return request({
  29. url: '/api/gacha',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 抽奖结果
  35. export function gacha(data) {
  36. return request({
  37. url: '/api/gacha',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 抽奖记录
  43. export function gachalog(data) {
  44. return request({
  45. url: '/api/gacha/log',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 兑换积分
  51. export function dhjp(data, id) {
  52. return request({
  53. url: '/api/gacha/get/' + id,
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 核销奖品
  59. export function writer(data) {
  60. return request({
  61. url: '/api/admin/gacha/writer',
  62. method: 'post',
  63. data
  64. });
  65. }