shop.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import {
  2. myRequest
  3. } from './request.js'
  4. import {
  5. myRequestPhp
  6. } from './requestPhp.js'
  7. // 店铺信息头
  8. export function selectMerchant(data) {
  9. return myRequest({
  10. url: 'merchant_service/cashierService/selectMerchant',
  11. method: 'post',
  12. data
  13. })
  14. }
  15. // 今日昨日收益
  16. export function selectMerchantOrder(data) {
  17. return myRequest({
  18. url: 'merchant_service/cashierService/selectMerchantOrder',
  19. method: 'post',
  20. data
  21. })
  22. }
  23. // 今日昨日收益
  24. export function payUserList(data) {
  25. return myRequest({
  26. url: 'merchant_service/cashierService/payUserList',
  27. method: 'post',
  28. data
  29. })
  30. }
  31. // 消费分页面
  32. export function merchantConsumption(data) {
  33. return myRequest({
  34. url: 'merchant_service/cashierService/merchantConsumption',
  35. method: 'post',
  36. data
  37. })
  38. }
  39. // 开通消费分接口
  40. export function updateConsumptionScore(data) {
  41. return myRequest({
  42. url: 'merchant_service/cashierService/updateConsumptionScore',
  43. method: 'post',
  44. data
  45. })
  46. }
  47. // 消费分明细
  48. export function selectMerchantConsumption(data) {
  49. return myRequest({
  50. url: 'merchant_service/cashierService/selectMerchantConsumption',
  51. method: 'post',
  52. data
  53. })
  54. }
  55. // 收款二维码隐藏显示
  56. export function queryByKey(data) {
  57. return myRequest({
  58. url: 'system_service/sysconfig/wxQueryByKey',
  59. method: 'get',
  60. data
  61. })
  62. }
  63. const pre = ""
  64. const apiType = "php"
  65. //顶部统计
  66. export function getZuorijinri(data) {
  67. return myRequestPhp({
  68. url: `${pre}mer/statistics/zuorijinri`,
  69. method: 'GET',
  70. data,
  71. apiType
  72. })
  73. }
  74. // 最新记录
  75. export function getZuixinjilu(data) {
  76. return myRequestPhp({
  77. url: `${pre}mer/statistics/zuixinjilu`,
  78. method: 'GET',
  79. data,
  80. apiType
  81. })
  82. }