merchant.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import request from '@/utils/request'
  2. //店铺订单列表
  3. export function merchantList(data) {
  4. return request({
  5. url: '/api/admin/order/list',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. //店铺订单详情
  11. export function detail(data, id) {
  12. return request({
  13. url: '/api/admin/order/detail/' + id,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 店铺订单每月统计数据
  19. export function shop_data(data) {
  20. return request({
  21. url: '/api/admin/order/month',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 店铺信息
  27. export function my(data) {
  28. return request({
  29. url: '/api/store/my',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 店铺会员列表
  35. export function member(data) {
  36. return request({
  37. url: '/api/store/member',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 店铺商品列表
  43. export function goods(data) {
  44. return request({
  45. url: '/api/store/goods',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. //订单核销
  51. export function verific(data) {
  52. return request({
  53. url: '/api/order/order_verific',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. //卡片兑换
  59. export function verification(data) {
  60. return request({
  61. url: '/api/user/verification',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. // 新店铺首页
  67. export function storeIndex(data) {
  68. return request({
  69. url: '/api/user_store/index',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. // 新店铺收益
  75. export function bill(data) {
  76. return request({
  77. url: '/api/user_store/bill',
  78. method: 'get',
  79. data
  80. });
  81. }
  82. // 新店铺提现
  83. export function extract(data) {
  84. return request({
  85. url: '/api/user_store/extract',
  86. method: 'post',
  87. data
  88. });
  89. }