info.js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  4. __name: "info",
  5. setup(__props) {
  6. var _a;
  7. (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
  8. const config = common_vendor.ref({ logoUrl: "" });
  9. const id = common_vendor.ref("");
  10. common_vendor.onLoad(async (options) => {
  11. id.value = options && options.id;
  12. common_vendor.index.setNavigationBarTitle({
  13. title: options && options.name || "活动详情"
  14. });
  15. await searchConfig();
  16. await search();
  17. });
  18. const searchConfig = async () => {
  19. config.value = common_vendor.index.getStorageSync("config");
  20. };
  21. const search = async () => {
  22. if (id.value)
  23. ;
  24. };
  25. return (_ctx, _cache) => {
  26. return {};
  27. };
  28. }
  29. });
  30. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-24c37ea1"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/activity/info.vue"]]);
  31. wx.createPage(MiniProgramPage);