index.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
  6. (_easycom_u_swiper2 + _easycom_u_icon2)();
  7. }
  8. const _easycom_u_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js";
  9. const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
  10. if (!Math) {
  11. (_easycom_u_swiper + _easycom_u_icon)();
  12. }
  13. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  14. __name: "index",
  15. setup(__props) {
  16. var _a, _b;
  17. (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
  18. (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
  19. const config = common_vendor.ref({ logo: [], file: [] });
  20. common_vendor.ref([]);
  21. common_vendor.ref(0);
  22. common_vendor.onShow(async () => {
  23. await searchConfig();
  24. await search();
  25. });
  26. const searchConfig = async () => {
  27. config.value = common_vendor.index.getStorageSync("config");
  28. };
  29. const search = async () => {
  30. };
  31. const toCommon = (item) => {
  32. common_vendor.index.navigateTo({
  33. url: `/pagesHome/search/index?type=${item.type || ""}`
  34. });
  35. };
  36. return (_ctx, _cache) => {
  37. return {
  38. a: common_vendor.p({
  39. list: config.value.file,
  40. height: "240px",
  41. indicator: true,
  42. indicatorMode: "line",
  43. circular: true
  44. }),
  45. b: common_vendor.f(_ctx.menuList, (item, index, i0) => {
  46. return {
  47. a: item.url,
  48. b: common_vendor.t(item.title),
  49. c: common_vendor.t(item.brief),
  50. d: "4978fed5-1-" + i0,
  51. e: index,
  52. f: common_vendor.o(($event) => toCommon(item.route), index)
  53. };
  54. }),
  55. c: common_vendor.p({
  56. name: "arrow-right",
  57. size: "20"
  58. })
  59. };
  60. };
  61. }
  62. });
  63. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/赋强公证/notarization_applet/pages/home/index.vue"]]);
  64. wx.createPage(MiniProgramPage);