apply.js 949 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import request from '@/utils/request'
  2. import {upFilse} from '@/utils/request'
  3. // 查询会员
  4. export function query(data,type) {
  5. return request({
  6. url: '/api/member/get/'+type,
  7. method: 'get',
  8. data
  9. });
  10. }
  11. // 申请
  12. export function apply(data,type) {
  13. return request({
  14. url: '/api/member/apply/'+type,
  15. method: 'post',
  16. data
  17. });
  18. }
  19. // 会员价格
  20. export function getPrice(data,type) {
  21. return request({
  22. url: '/api/member/config/'+type,
  23. method: 'get',
  24. data
  25. });
  26. }
  27. //上传图片
  28. export function uploads(data) {
  29. return upFilse({
  30. url: '/api/upload/image',
  31. method: 'post',
  32. data
  33. });
  34. }
  35. //
  36. export function getIndex(data) {
  37. return request({
  38. url: '/api/index',
  39. method: 'get',
  40. data
  41. });
  42. }
  43. // 核销码列表
  44. export function getTicket(data) {
  45. return request({
  46. url: '/api/ticket',
  47. method: 'get',
  48. data
  49. });
  50. }
  51. // 核销
  52. export function check(data) {
  53. return request({
  54. url: '/api/check',
  55. method: 'post',
  56. data
  57. });
  58. }