index.js 788 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 门店列表 b
  4. */
  5. export const getList = data => {
  6. return https.get('/shop/list', data)
  7. }
  8. /** *
  9. * 修改门店 b
  10. */
  11. export const updateShop = data => {
  12. return https.post('/shop/update', data)
  13. }
  14. /** *
  15. * 添加门店 b
  16. */
  17. export const addShop = data => {
  18. return https.post('/shop/add', data)
  19. }
  20. /** *
  21. * 删除门店 b
  22. */
  23. export const delShop = data => {
  24. return https.get('/shop/delete', data)
  25. }
  26. /** *
  27. * 下载收款码 b
  28. */
  29. export const downQrCode = data => {
  30. return https.get('/shop/download-gathering-code', data, {}, { hideError: true })
  31. }
  32. /** *
  33. * 下载注册会员码 b
  34. */
  35. export const downMemberCode = data => {
  36. return https.get('/shop/download-apply-member-code', data, {}, { hideError: true })
  37. }