functionalUnit.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import request from '@/utils/request'
  2. //获取优惠券列表
  3. export function getCouponsList(data,types) {
  4. //优惠券状态 0全部 1未使用 2已使用
  5. return request({
  6. url: '/api/coupons/user/'+types,
  7. method: 'get',
  8. data
  9. });
  10. }
  11. //领取优惠券
  12. export function setCoupons(data) {
  13. return request({
  14. url: '/api/coupon/receive',
  15. method: 'post',
  16. data
  17. });
  18. }
  19. //获取可使用优惠券
  20. export function couponsOrder(data,price) {
  21. return request({
  22. url: '/api/coupons/order/'+price,
  23. method: 'get',
  24. data
  25. });
  26. }
  27. // 积分列表
  28. export function integrallist(data) {
  29. return request({
  30. url: '/api/integral/list',
  31. method: 'get',
  32. data
  33. });
  34. }
  35. // 获取签到列表
  36. export function signList(data) {
  37. return request({
  38. url: '/api/sign/list',
  39. method: 'get',
  40. data
  41. });
  42. }
  43. // 点击签到
  44. export function integral(data) {
  45. return request({
  46. url: '/api/sign/integral',
  47. method: 'post',
  48. data
  49. });
  50. }
  51. // 签到信息
  52. export function signUser(data) {
  53. return request({
  54. url: '/api/sign/user',
  55. method: 'post',
  56. data
  57. });
  58. }