"use strict";
const common_vendor = require("../../common/vendor.js");
const modules_Config = require("../../modules/Config.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  data() {
    return {
      qrImageUrl: "",
      loading: true
    };
  },
  onLoad() {
    this.loadQrImage();
  },
  methods: {
    goBack() {
      common_vendor.index.navigateBack();
    },
    async loadQrImage() {
      try {
        this.loading = true;
        const config = await modules_Config.Config.getPublicConfig();
        if (config.contact_qr_image) {
          this.qrImageUrl = modules_Config.Config.getImageUrl(config.contact_qr_image);
        }
      } catch (error) {
        common_vendor.index.__f__("error", "at pages/me/contact-us-page.vue:53", "加载二维码失败:", error);
      } finally {
        this.loading = false;
      }
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return common_vendor.e({
    a: common_assets._imports_0,
    b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
    c: common_vendor.t(_ctx.$t("me.contactUs")),
    d: $data.qrImageUrl
  }, $data.qrImageUrl ? {
    e: $data.qrImageUrl
  } : {
    f: common_vendor.t($data.loading ? "加载中..." : "暂无二维码")
  });
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f03b1d9f"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/me/contact-us-page.js.map
