subscription.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import request from '@/utils/request'
  2. // 查询参数列表
  3. export function listApplyList(query) {
  4. return request({
  5. url: '/system/back/apply/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 删除
  11. export function delApplyItem(userId) {
  12. return request({
  13. url: '/system/back/apply/' + userId,
  14. method: 'delete'
  15. })
  16. }
  17. // 查询产品类型
  18. export function listProductType() {
  19. return request({
  20. url: '/system/web/productType/all',
  21. method: 'get',
  22. })
  23. }
  24. //查询区域树
  25. export function areaTree(data) {
  26. return request({
  27. url: '/system/web/position/findByCodeAndLevel',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. //查询订单
  33. export function createOrder(data) {
  34. return request({
  35. url: '/system/web/order/create-order',
  36. method: 'post',
  37. data: data
  38. })
  39. }
  40. // 查询购买对象列表
  41. export function listCustomer(query) {
  42. return request({
  43. url: '/system/web/customer/coustomer-list',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 确认付款
  49. export function pay(data) {
  50. return request({
  51. url: '/system/web/order/collect-money',
  52. method: 'put',
  53. data: data
  54. })
  55. }
  56. // 查询购买对象列表
  57. export function orderDetail(query) {
  58. return request({
  59. url: '/system/web/order/offline-order-detail',
  60. method: 'get',
  61. params: query
  62. })
  63. }