third.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "use strict";
  2. const sheep_request_index = require("../../request/index.js");
  3. const sheep_config_index = require("../../config/index.js");
  4. const third = {
  5. // 微信相关
  6. wechat: {
  7. // 小程序订阅消息
  8. subscribeTemplate: (params) => sheep_request_index.request({
  9. url: "third/wechat/subscribeTemplate",
  10. method: "GET",
  11. params: {
  12. platform: "miniProgram"
  13. },
  14. custom: {
  15. showError: false,
  16. showLoading: false
  17. }
  18. }),
  19. // 获取微信小程序码
  20. getWxacode: (path) => `${sheep_config_index.baseUrl}${sheep_config_index.apiPath}third/wechat/wxacode?platform=miniProgram&payload=${encodeURIComponent(
  21. JSON.stringify({
  22. path
  23. })
  24. )}`
  25. },
  26. // 苹果相关
  27. apple: {
  28. // 第三方登录
  29. login: (data) => sheep_request_index.request({
  30. url: "third/apple/login",
  31. method: "POST",
  32. data,
  33. custom: {
  34. showSuccess: true,
  35. loadingMsg: "登陆中"
  36. }
  37. })
  38. }
  39. };
  40. const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  41. __proto__: null,
  42. default: third
  43. }, Symbol.toStringTag, { value: "Module" }));
  44. exports.__vite_glob_0_13 = __vite_glob_0_13;