index.js 965 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. export const getNewGift = data => {
  3. return https.get('/hb/get-new-gift', data)
  4. }
  5. export const hbList = data => {
  6. return https.get('/hb/hb-list', data)
  7. }
  8. export const getAvailableHb = data => {
  9. return https.get('/hb/available-hb', data)
  10. }
  11. export const createHb = data => {
  12. return https.post('/hb/create-hb', data)
  13. }
  14. export const unAvailableHb = data => {
  15. return https.post('/hb/update-hb', data)
  16. }
  17. export const backHb = data => {
  18. return https.post('/hb/update-hb', data)
  19. }
  20. export const getHbDetail = data => {
  21. return https.get('/hb/get-detail', data)
  22. }
  23. //充值送红包规则列表
  24. export const hbRulesList = data => {
  25. return https.get('/hb/hb-rules', data)
  26. }
  27. //充值送红包规则创建
  28. export const sendHbRule = data => {
  29. return https.post('/hb/send-hb-rules', data)
  30. }
  31. //充值送红包规则删除
  32. export const deleteHbRule = data => {
  33. return https.post('/hb/delete-hb-rule', data)
  34. }