user.js 878 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: "/app/user/gzh_bind",
  39. method: "post",
  40. data: data,
  41. });
  42. }