"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 {
      appLogo: "",
      appName: "",
      aboutUsImage: "",
      version: "1.0.0",
      loading: true
    };
  },
  onLoad() {
    this.loadConfig();
  },
  methods: {
    goBack() {
      common_vendor.index.navigateBack();
    },
    async loadConfig() {
      try {
        this.loading = true;
        const config = await modules_Config.Config.getPublicConfig();
        if (config.app_logo) {
          this.appLogo = modules_Config.Config.getImageUrl(config.app_logo);
        }
        if (config.app_name) {
          this.appName = config.app_name;
        }
        if (config.about_us_image) {
          this.aboutUsImage = modules_Config.Config.getImageUrl(config.about_us_image);
        }
      } catch (error) {
        common_vendor.index.__f__("error", "at pages/me/about-us-page.vue:68", "加载配置失败:", 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.about")),
    d: $data.appLogo
  }, $data.appLogo ? {
    e: $data.appLogo
  } : {}, {
    f: common_vendor.t($data.appName),
    g: common_vendor.t($data.version),
    h: $data.aboutUsImage
  }, $data.aboutUsImage ? {
    i: $data.aboutUsImage
  } : {});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0b7dc0d1"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/me/about-us-page.js.map
