index.js 973 B

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