user.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { fetchGet, fetchPost } from '../http'
  2. export const bindShopId = (params) => {
  3. return fetchPost('/bind/bindShopId', params)
  4. }
  5. export const phoneLogin = (params) => {
  6. return fetchPost('/bind/phoneLogin', params)
  7. }
  8. export const ownerPhoneLogin = (params) => {
  9. return fetchPost('/bindOwner/phoneLogin', params)
  10. }
  11. // 分享
  12. export const share = (params) => {
  13. return fetchPost('/share/share', params)
  14. }
  15. // 授权
  16. export const sign = (params) => {
  17. return fetchPost('/sign/get', params)
  18. }
  19. // 查看分享
  20. export const look = (params) => {
  21. return fetchPost('/share/look', params)
  22. }
  23. // 查询订单数目-石延杰
  24. export const getMarketingSheetSize = (params) => {
  25. return fetchGet('/my/getMarketingSheetSize', params)
  26. }
  27. // 我的店铺红包-石延杰
  28. export const getRedEnvelopes = (params) => {
  29. return fetchGet('/my/getRedEnvelopes', params)
  30. }
  31. // 我的会员卡名称列表 -石延杰
  32. export const getMyCardNames = (params) => {
  33. return fetchGet('/my/getMyCardNames', params)
  34. }
  35. // 我的某张会员卡收支明细 -石延杰
  36. export const getMyCardDetailByCardId = (params) => {
  37. return fetchGet('/my/getMyCardDetailByCardId', params)
  38. }
  39. // 分页查询拼团列表-石延杰
  40. export const getGroupItemList = (params) => {
  41. return fetchGet('/my/getGroupItemList', params)
  42. }
  43. // 我的相关信息-石延杰
  44. export const getMyInfo = (params) => {
  45. return fetchGet('/my/getMyInfo', params)
  46. }