index.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 = {
  82. "page": {
  83. "description": "",
  84. "backgroundColor": "#f5f5f5",
  85. "backgroundImage": ""
  86. },
  87. "navigationBar": {
  88. "title": "页面标题",
  89. "description": "",
  90. "navBarHeight": 35,
  91. "backgroundColor": "#fff",
  92. "backgroundImage": "",
  93. "styleType": "default",
  94. "alwaysShow": true,
  95. "showGoBack": true
  96. },
  97. "components": [{
  98. "id": "SearchBar",
  99. "property": {
  100. "height": 28,
  101. "showScan": false,
  102. "borderRadius": 0,
  103. "placeholder": "搜索商品",
  104. "placeholderPosition": "left",
  105. "backgroundColor": "rgb(238, 238, 238)",
  106. "textColor": "rgb(150, 151, 153)",
  107. "hotKeywords": [],
  108. "style": {
  109. "bgType": "color",
  110. "bgColor": "#fff",
  111. "marginBottom": 8,
  112. "paddingTop": 8,
  113. "paddingRight": 8,
  114. "paddingBottom": 8,
  115. "paddingLeft": 8
  116. }
  117. }
  118. }, {
  119. "id": "UserCard",
  120. "property": {
  121. "style": {
  122. "bgType": "color",
  123. "bgColor": "",
  124. "marginBottom": 8
  125. }
  126. }
  127. }]
  128. };
  129. common_vendor.onLoad((options) => {
  130. if (options.scene) {
  131. const sceneParams = decodeURIComponent(options.scene).split("=");
  132. options[sceneParams[0]] = sceneParams[1];
  133. }
  134. if (options.templateId) {
  135. sheep_index.sheep.$store("app").init(options.templateId);
  136. }
  137. if (options.spm) {
  138. sheep_platform_share.$share.decryptSpm(options.spm);
  139. }
  140. if (options.page) {
  141. sheep_index.sheep.$router.go(decodeURIComponent(options.page));
  142. }
  143. });
  144. common_vendor.onPageScroll(() => {
  145. });
  146. return (_ctx, _cache) => {
  147. var _a;
  148. return common_vendor.e({
  149. a: template
  150. }, template ? {
  151. b: common_vendor.f(template.components, (item, index, i0) => {
  152. return {
  153. a: "b27be8ce-2-" + i0 + "," + ("b27be8ce-1-" + i0),
  154. b: common_vendor.p({
  155. type: item.id,
  156. data: item.property,
  157. styles: item.property.style
  158. }),
  159. c: index,
  160. d: "b27be8ce-1-" + i0 + ",b27be8ce-0",
  161. e: common_vendor.p({
  162. styles: item.property.style
  163. })
  164. };
  165. }),
  166. c: common_vendor.p({
  167. title: "xxx店",
  168. navbar: "normal",
  169. tabbar: "/pages/index/index",
  170. bgStyle: template.page,
  171. navbarStyle: (_a = template.style) == null ? void 0 : _a.navbar,
  172. onShareAppMessage: true
  173. })
  174. } : {});
  175. };
  176. }
  177. };
  178. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/zx/mall-front-app/pages/shop/index.vue"]]);
  179. _sfc_main.__runtimeHooks = 3;
  180. wx.createPage(MiniProgramPage);