index.js 908 B

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