s-signup-modal.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const sheep_index = require("../../index.js");
  4. const sheep_hooks_useModal = require("../../hooks/useModal.js");
  5. require("../../api/index.js");
  6. require("../../api/distri/score.js");
  7. require("../../request/index.js");
  8. require("../../config/index.js");
  9. require("../../store/index.js");
  10. require("../../store/app.js");
  11. require("../../api/promotion/diy.js");
  12. require("../../platform/index.js");
  13. require("../../platform/provider/wechat/index.js");
  14. require("../../platform/provider/wechat/miniProgram.js");
  15. require("../../api/member/auth.js");
  16. require("../../api/member/social.js");
  17. require("../../api/member/user.js");
  18. require("../../platform/provider/apple/index.js");
  19. require("../../platform/share.js");
  20. require("../../router/index.js");
  21. require("../../helper/throttle.js");
  22. require("../../url/index.js");
  23. require("../../platform/pay.js");
  24. require("../../helper/index.js");
  25. require("../../helper/test.js");
  26. require("../../helper/digit.js");
  27. require("../../api/pay/order.js");
  28. require("../../store/user.js");
  29. require("../../store/cart.js");
  30. require("../../api/trade/cart.js");
  31. require("../../api/pay/wallet.js");
  32. require("../../api/trade/order.js");
  33. require("../../api/promotion/coupon.js");
  34. require("../../store/sys.js");
  35. require("../../store/modal.js");
  36. require("../../api/distri/share.js");
  37. require("../../api/distri/team.js");
  38. require("../../api/infra/file.js");
  39. require("../../api/member/address.js");
  40. require("../../api/member/point.js");
  41. require("../../api/member/signin.js");
  42. require("../../api/migration/app.js");
  43. require("../../api/migration/chat.js");
  44. require("../../api/migration/index.js");
  45. require("../../api/migration/third.js");
  46. require("../../api/pay/channel.js");
  47. require("../../api/product/category.js");
  48. require("../../api/product/comment.js");
  49. require("../../api/product/favorite.js");
  50. require("../../api/product/history.js");
  51. require("../../api/product/spu.js");
  52. require("../../api/promotion/activity.js");
  53. require("../../api/promotion/article.js");
  54. require("../../api/promotion/bargain.js");
  55. require("../../api/promotion/combination.js");
  56. require("../../api/promotion/rewardActivity.js");
  57. require("../../api/promotion/seckill.js");
  58. require("../../api/system/area.js");
  59. require("../../api/system/voice.js");
  60. require("../../api/trade/afterSale.js");
  61. require("../../api/trade/brokerage.js");
  62. require("../../api/trade/config.js");
  63. require("../../api/trade/delivery.js");
  64. require("../../config/zIndex.js");
  65. if (!Array) {
  66. const _easycom_su_popup2 = common_vendor.resolveComponent("su-popup");
  67. _easycom_su_popup2();
  68. }
  69. const _easycom_su_popup = () => "../../ui/su-popup/su-popup.js";
  70. if (!Math) {
  71. _easycom_su_popup();
  72. }
  73. const _sfc_main = {
  74. __name: "s-signup-modal",
  75. setup(__props) {
  76. common_vendor.useCssVars((_ctx) => ({
  77. "7e3c3ef2": common_vendor.unref(headerBg)
  78. }));
  79. const headerBg = sheep_index.sheep.$url.css("/static/images/sign.png");
  80. const show = common_vendor.computed(() => sheep_index.sheep.$store("modal").signUp);
  81. const state = common_vendor.computed(() => sheep_index.sheep.$store("modal").signUpInfo);
  82. common_vendor.watch(() => show.value, (newValue) => {
  83. if (newValue) {
  84. setTimeout(sheep_hooks_useModal.colseSignUpModal, 3e3);
  85. }
  86. });
  87. return (_ctx, _cache) => {
  88. var _a, _b, _c, _d;
  89. return common_vendor.e({
  90. a: common_vendor.t((_a = state.value) == null ? void 0 : _a.social),
  91. b: (_b = state.value) == null ? void 0 : _b.upgradeOrNot
  92. }, ((_c = state.value) == null ? void 0 : _c.upgradeOrNot) ? {
  93. c: common_vendor.t((_d = state.value) == null ? void 0 : _d.socialStatusName)
  94. } : {}, {
  95. d: common_vendor.o(($event) => {
  96. common_vendor.unref(sheep_hooks_useModal.colseSignUpModal)();
  97. }),
  98. e: common_vendor.o(common_vendor.unref(sheep_hooks_useModal.colseSignUpModal)),
  99. f: common_vendor.s(_ctx.__cssVars()),
  100. g: common_vendor.p({
  101. show: show.value,
  102. type: "center",
  103. round: "10"
  104. })
  105. });
  106. };
  107. }
  108. };
  109. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a1af371b"], ["__file", "D:/zx/mall-front-app/sheep/components/s-signup-modal/s-signup-modal.vue"]]);
  110. wx.createComponent(Component);