user.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. // 查询用户是否绑定公众号
  19. export function checkBindGzh(data) {
  20. return myRequest({
  21. url: "/distribution/seller/checkBindGzh",
  22. method: "get",
  23. data,
  24. });
  25. }
  26. // 获取appid
  27. export function getWxConfig(data) {
  28. return myRequest({
  29. url: "/app/common/wx/config",
  30. method: "get",
  31. data: data,
  32. noToken: true,
  33. });
  34. }
  35. //绑定公众号
  36. export function OfficialLogin(data) {
  37. return myRequest({
  38. url: "/distribution/seller/gzh_bind",
  39. method: "post",
  40. data: data,
  41. });
  42. }
  43. // 提现
  44. export function withdrawal(data) {
  45. return myRequest({
  46. url: "/distribution/withdrawal",
  47. method: "post",
  48. data: data,
  49. });
  50. }
  51. // 提现记录
  52. export function getWithdrawalList(data) {
  53. return myRequest({
  54. url: "/distribution/withdrawal/list",
  55. method: "get",
  56. data: data,
  57. });
  58. }