sellerSetting.js 914 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { requestApi } from '../util/network'
  2. // 获取店铺信息
  3. export const getStoreInfo =
  4. () =>
  5. requestApi(
  6. '/Sellersetting/store_info',
  7. 'POST',
  8. {
  9. },
  10. 'seller'
  11. )
  12. export const editStoreInfo =
  13. (storeQq, storeWw, storePhone, storeMainbusiness, seoKeywords, seoDescription,storeAvatar) =>
  14. requestApi(
  15. '/Sellersetting/store_edit',
  16. 'POST',
  17. {
  18. 'store_qq': storeQq,
  19. 'store_ww': storeWw,
  20. 'store_phone': storePhone,
  21. 'store_mainbusiness': storeMainbusiness,
  22. 'seo_keywords': seoKeywords,
  23. 'seo_description': seoDescription,
  24. 'store_avatar':storeAvatar
  25. },
  26. 'seller'
  27. )
  28. export const uploadStoreImage =
  29. (file) =>
  30. requestApi(
  31. '/Sellersetting/store_image_upload',
  32. 'POST',
  33. file,
  34. 'seller',
  35. true
  36. )