user.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { myRequest } from "./request.js";
  2. //修改信息
  3. export function sellerEdit(data) {
  4. return myRequest({
  5. url: "/distribution/seller/edit",
  6. method: "post",
  7. data: data,
  8. });
  9. }
  10. export function getInfoByShareCode(data) {
  11. return myRequest({
  12. url: "/app/common/distribution/getInfoByShareCode",
  13. method: "get",
  14. data: data,
  15. noToken: true,
  16. });
  17. }
  18. export function getWxConfig(data) {
  19. return myRequest({
  20. url: "/app/common/wx/config",
  21. method: "get",
  22. data: data,
  23. noToken: true,
  24. });
  25. }
  26. // 查询用户是否绑定公众号
  27. export function checkBindGzh(data) {
  28. return myRequest({
  29. url: "/distribution/seller/checkBindGzh",
  30. method: "get",
  31. data,
  32. });
  33. }
  34. // 提现
  35. export function withdrawal(data) {
  36. return myRequest({
  37. url: "/distribution/withdrawal",
  38. method: "post",
  39. data: data,
  40. });
  41. }
  42. export function OfficialLogin(data) {
  43. return myRequest({
  44. url: "/distribution/seller/gzh_bind",
  45. method: "post",
  46. data: data,
  47. });
  48. }
  49. // 提现记录
  50. export function getWithdrawalList(data) {
  51. return myRequest({
  52. url: "/distribution/withdrawal/list",
  53. method: "get",
  54. data: data,
  55. });
  56. }
  57. export function getMobileConfig(data) {
  58. return myRequest({
  59. url: "/app/common/mobileConfig",
  60. method: "get",
  61. data: data,
  62. noToken: true,
  63. });
  64. }