location.js 840 B

1234567891011121314151617181920212223242526
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  4. __name: "location",
  5. setup(__props) {
  6. const detail = common_vendor.ref({});
  7. const map = common_vendor.ref("");
  8. common_vendor.onLoad((options) => {
  9. detail.value = options;
  10. map.value = options.src;
  11. common_vendor.index.setNavigationBarTitle({
  12. title: options.title
  13. });
  14. });
  15. return (_ctx, _cache) => {
  16. return {
  17. a: map.value,
  18. b: common_vendor.t(detail.value.title),
  19. c: common_vendor.t(detail.value.label),
  20. d: common_vendor.t(detail.value.content)
  21. };
  22. };
  23. }
  24. });
  25. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-3b646e3b"]]);
  26. wx.createPage(MiniProgramPage);