index.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. if (!Array) {
  4. const _easycom_u_swiper2 = common_vendor.resolveComponent("u-swiper");
  5. _easycom_u_swiper2();
  6. }
  7. const _easycom_u_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js";
  8. if (!Math) {
  9. _easycom_u_swiper();
  10. }
  11. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  12. __name: "index",
  13. setup(__props) {
  14. var _a, _b;
  15. (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
  16. (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
  17. const config = common_vendor.ref({ logo: [], file: [] });
  18. common_vendor.ref([]);
  19. common_vendor.ref(0);
  20. common_vendor.ref([]);
  21. common_vendor.onShow(async () => {
  22. await searchConfig();
  23. await searchOther();
  24. await search();
  25. });
  26. const searchConfig = async () => {
  27. config.value = common_vendor.index.getStorageSync("config");
  28. };
  29. const searchOther = async () => {
  30. };
  31. const search = async () => {
  32. };
  33. return (_ctx, _cache) => {
  34. return {
  35. a: common_vendor.p({
  36. list: config.value.file,
  37. height: "240px",
  38. indicator: true,
  39. indicatorMode: "dot",
  40. circular: true
  41. })
  42. };
  43. };
  44. }
  45. });
  46. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/学吧/learn_applet/pages/home/index.vue"]]);
  47. wx.createPage(MiniProgramPage);