index.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const sheep_index = require("../../sheep/index.js");
  4. const sheep_platform_share = require("../../sheep/platform/share.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/pay.js");
  20. require("../../sheep/helper/index.js");
  21. require("../../sheep/helper/test.js");
  22. require("../../sheep/helper/digit.js");
  23. require("../../sheep/api/pay/order.js");
  24. require("../../sheep/router/index.js");
  25. require("../../sheep/hooks/useModal.js");
  26. require("../../sheep/api/member/signin.js");
  27. require("../../sheep/helper/throttle.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/migration/app.js");
  42. require("../../sheep/api/migration/chat.js");
  43. require("../../sheep/api/migration/index.js");
  44. require("../../sheep/api/migration/third.js");
  45. require("../../sheep/api/pay/channel.js");
  46. require("../../sheep/api/product/category.js");
  47. require("../../sheep/api/product/comment.js");
  48. require("../../sheep/api/product/favorite.js");
  49. require("../../sheep/api/product/history.js");
  50. require("../../sheep/api/product/spu.js");
  51. require("../../sheep/api/promotion/activity.js");
  52. require("../../sheep/api/promotion/article.js");
  53. require("../../sheep/api/promotion/bargain.js");
  54. require("../../sheep/api/promotion/combination.js");
  55. require("../../sheep/api/promotion/rewardActivity.js");
  56. require("../../sheep/api/promotion/seckill.js");
  57. require("../../sheep/api/system/area.js");
  58. require("../../sheep/api/system/voice.js");
  59. require("../../sheep/api/trade/afterSale.js");
  60. require("../../sheep/api/trade/brokerage.js");
  61. require("../../sheep/api/trade/config.js");
  62. require("../../sheep/api/trade/delivery.js");
  63. require("../../sheep/url/index.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: "index",
  79. setup(__props) {
  80. common_vendor.index.hideTabBar();
  81. const template = common_vendor.computed(() => {
  82. var _a;
  83. return (_a = sheep_index.sheep.$store("app").template) == null ? void 0 : _a.home;
  84. });
  85. common_vendor.onLoad((options) => {
  86. if (options.scene) {
  87. const sceneParams = decodeURIComponent(options.scene).split("=");
  88. options[sceneParams[0]] = sceneParams[1];
  89. }
  90. if (options.templateId) {
  91. sheep_index.sheep.$store("app").init(options.templateId);
  92. }
  93. if (options.spm) {
  94. sheep_platform_share.$share.decryptSpm(options.spm);
  95. }
  96. if (options.page) {
  97. sheep_index.sheep.$router.go(decodeURIComponent(options.page));
  98. }
  99. });
  100. common_vendor.onPullDownRefresh(() => {
  101. sheep_index.sheep.$store("app").init();
  102. setTimeout(function() {
  103. common_vendor.index.stopPullDownRefresh();
  104. }, 800);
  105. });
  106. common_vendor.onPageScroll(() => {
  107. });
  108. return (_ctx, _cache) => {
  109. var _a;
  110. return common_vendor.e({
  111. a: template.value
  112. }, template.value ? {
  113. b: common_vendor.f(template.value.components, (item, index, i0) => {
  114. return {
  115. a: "5a854d65-2-" + i0 + "," + ("5a854d65-1-" + i0),
  116. b: common_vendor.p({
  117. type: item.id,
  118. data: item.property,
  119. styles: item.property.style
  120. }),
  121. c: index,
  122. d: "5a854d65-1-" + i0 + ",5a854d65-0",
  123. e: common_vendor.p({
  124. styles: item.property.style
  125. })
  126. };
  127. }),
  128. c: common_vendor.p({
  129. title: "首页",
  130. navbar: "custom",
  131. tabbar: "/pages/index/index",
  132. bgStyle: template.value.page,
  133. navbarStyle: (_a = template.value.style) == null ? void 0 : _a.navbar,
  134. onShareAppMessage: true
  135. })
  136. } : {});
  137. };
  138. }
  139. };
  140. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/zx/mall-front-app/pages/index/index.vue"]]);
  141. _sfc_main.__runtimeHooks = 3;
  142. wx.createPage(MiniProgramPage);