user.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const sheep_index = require("../../sheep/index.js");
  4. const sheep_hooks_useModal = require("../../sheep/hooks/useModal.js");
  5. require("../../sheep/api/index.js");
  6. require("../../sheep/api/distri/score.js");
  7. require("../../sheep/request/index.js");
  8. require("../../sheep/config/index.js");
  9. require("../../sheep/store/index.js");
  10. require("../../sheep/store/app.js");
  11. require("../../sheep/api/promotion/diy.js");
  12. require("../../sheep/platform/index.js");
  13. require("../../sheep/platform/provider/wechat/index.js");
  14. require("../../sheep/platform/provider/wechat/miniProgram.js");
  15. require("../../sheep/api/member/auth.js");
  16. require("../../sheep/api/member/social.js");
  17. require("../../sheep/api/member/user.js");
  18. require("../../sheep/platform/provider/apple/index.js");
  19. require("../../sheep/platform/share.js");
  20. require("../../sheep/router/index.js");
  21. require("../../sheep/helper/throttle.js");
  22. require("../../sheep/url/index.js");
  23. require("../../sheep/platform/pay.js");
  24. require("../../sheep/helper/index.js");
  25. require("../../sheep/helper/test.js");
  26. require("../../sheep/helper/digit.js");
  27. require("../../sheep/api/pay/order.js");
  28. require("../../sheep/store/user.js");
  29. require("../../sheep/store/cart.js");
  30. require("../../sheep/api/trade/cart.js");
  31. require("../../sheep/api/pay/wallet.js");
  32. require("../../sheep/api/trade/order.js");
  33. require("../../sheep/api/promotion/coupon.js");
  34. require("../../sheep/store/sys.js");
  35. require("../../sheep/store/modal.js");
  36. require("../../sheep/api/distri/share.js");
  37. require("../../sheep/api/distri/team.js");
  38. require("../../sheep/api/infra/file.js");
  39. require("../../sheep/api/member/address.js");
  40. require("../../sheep/api/member/point.js");
  41. require("../../sheep/api/member/signin.js");
  42. require("../../sheep/api/migration/app.js");
  43. require("../../sheep/api/migration/chat.js");
  44. require("../../sheep/api/migration/index.js");
  45. require("../../sheep/api/migration/third.js");
  46. require("../../sheep/api/pay/channel.js");
  47. require("../../sheep/api/product/category.js");
  48. require("../../sheep/api/product/comment.js");
  49. require("../../sheep/api/product/favorite.js");
  50. require("../../sheep/api/product/history.js");
  51. require("../../sheep/api/product/spu.js");
  52. require("../../sheep/api/promotion/activity.js");
  53. require("../../sheep/api/promotion/article.js");
  54. require("../../sheep/api/promotion/bargain.js");
  55. require("../../sheep/api/promotion/combination.js");
  56. require("../../sheep/api/promotion/rewardActivity.js");
  57. require("../../sheep/api/promotion/seckill.js");
  58. require("../../sheep/api/system/area.js");
  59. require("../../sheep/api/system/voice.js");
  60. require("../../sheep/api/trade/afterSale.js");
  61. require("../../sheep/api/trade/brokerage.js");
  62. require("../../sheep/api/trade/config.js");
  63. require("../../sheep/api/trade/delivery.js");
  64. require("../../sheep/config/zIndex.js");
  65. if (!Array) {
  66. const _easycom_s_block_item2 = common_vendor.resolveComponent("s-block-item");
  67. const _easycom_s_block2 = common_vendor.resolveComponent("s-block");
  68. const _easycom_s_layout2 = common_vendor.resolveComponent("s-layout");
  69. (_easycom_s_block_item2 + _easycom_s_block2 + _easycom_s_layout2)();
  70. }
  71. const _easycom_s_block_item = () => "../../sheep/components/s-block-item/s-block-item.js";
  72. const _easycom_s_block = () => "../../sheep/components/s-block/s-block.js";
  73. const _easycom_s_layout = () => "../../sheep/components/s-layout/s-layout.js";
  74. if (!Math) {
  75. (_easycom_s_block_item + _easycom_s_block + _easycom_s_layout)();
  76. }
  77. const _sfc_main = {
  78. __name: "user",
  79. setup(__props) {
  80. common_vendor.index.hideTabBar();
  81. const template = common_vendor.computed(() => sheep_index.sheep.$store("app").template.user);
  82. const isLogin = common_vendor.computed(() => sheep_index.sheep.$store("user").isLogin);
  83. common_vendor.onShow(() => {
  84. sheep_index.sheep.$store("user").updateUserData();
  85. });
  86. common_vendor.onPullDownRefresh(() => {
  87. sheep_index.sheep.$store("user").updateUserData();
  88. setTimeout(function() {
  89. common_vendor.index.stopPullDownRefresh();
  90. }, 800);
  91. });
  92. common_vendor.onPageScroll(() => {
  93. });
  94. common_vendor.onLoad((options) => {
  95. if (options.linkId) {
  96. common_vendor.index.setStorageSync("linkId", options.linkId);
  97. if (!isLogin.value) {
  98. sheep_hooks_useModal.showAuthModal("register", "register");
  99. }
  100. }
  101. });
  102. return (_ctx, _cache) => {
  103. var _a;
  104. return {
  105. a: common_vendor.f(template.value.components, (item, index, i0) => {
  106. return {
  107. a: "9b146af0-2-" + i0 + "," + ("9b146af0-1-" + i0),
  108. b: common_vendor.p({
  109. type: item.id,
  110. data: item.property,
  111. styles: item.property.style
  112. }),
  113. c: index,
  114. d: "9b146af0-1-" + i0 + ",9b146af0-0",
  115. e: common_vendor.p({
  116. styles: item.property.style
  117. })
  118. };
  119. }),
  120. b: common_vendor.p({
  121. title: "我的",
  122. tabbar: "/pages/index/user",
  123. navbar: "custom",
  124. bgStyle: template.value.page,
  125. navbarStyle: (_a = template.value.style) == null ? void 0 : _a.navbar,
  126. onShareAppMessage: true
  127. })
  128. };
  129. };
  130. }
  131. };
  132. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/zx/mall-front-app/pages/index/user.vue"]]);
  133. _sfc_main.__runtimeHooks = 3;
  134. wx.createPage(MiniProgramPage);