seller.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. import { requestApi } from '../util/network'
  2. // 卖家退出登录
  3. export const logout =
  4. (seller_name) =>
  5. requestApi(
  6. '/Sellerlogout/index',
  7. 'POST',
  8. {
  9. seller_name: seller_name,
  10. client: 'wap'
  11. },
  12. 'seller'
  13. )
  14. // 获取店铺基本信息
  15. export const getSellerInfo =
  16. () =>
  17. requestApi(
  18. '/Sellerindex/index',
  19. 'POST',
  20. {
  21. 'client_type': 'wap'
  22. },
  23. 'seller'
  24. )
  25. export const getStoreClass =
  26. () =>
  27. requestApi(
  28. '/store/get_store_class',
  29. 'POST',
  30. {
  31. }
  32. )
  33. export const getStoreGrade =
  34. () =>
  35. requestApi(
  36. '/store/get_store_grade',
  37. 'POST',
  38. {
  39. }
  40. )
  41. export const getStoreJoinin =
  42. () =>
  43. requestApi(
  44. '/Sellerjoinin/get_info',
  45. 'POST',
  46. {
  47. },
  48. 'member'
  49. )
  50. export const saveStoreJoinin2 =
  51. (joinin) =>
  52. requestApi(
  53. '/Sellerjoinin/step2',
  54. 'POST',
  55. joinin,
  56. 'member'
  57. )
  58. export const saveStoreJoinin3 =
  59. (joinin) =>
  60. requestApi(
  61. '/Sellerjoinin/step3',
  62. 'POST',
  63. joinin,
  64. 'member'
  65. )
  66. export const saveStoreJoinin4 =
  67. (joinin) =>
  68. requestApi(
  69. '/Sellerjoinin/step4',
  70. 'POST',
  71. joinin,
  72. 'member'
  73. )
  74. export const saveStoreJoinin5 =
  75. (joinin) =>
  76. requestApi(
  77. '/Sellerjoinin/pay_save',
  78. 'POST',
  79. joinin,
  80. 'member'
  81. )
  82. export const uploadInfoFile =
  83. (file) =>
  84. requestApi(
  85. '/Sellerjoinin/upload_image',
  86. 'POST',
  87. file,
  88. 'member',
  89. true
  90. )
  91. // 获取店铺日志记录
  92. export const getSellerLogList =
  93. () =>
  94. requestApi(
  95. '/Sellerlog/log_list',
  96. 'POST',
  97. {
  98. },
  99. 'seller'
  100. )
  101. // 获取店铺的消费记录
  102. export const getSellerCostList =
  103. (params) =>
  104. requestApi(
  105. '/Sellercost/cost_list',
  106. 'POST',
  107. {
  108. 'page': params.page // 当前第几页
  109. },
  110. 'seller'
  111. )