"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 {
      content: "",
      loading: true
    };
  },
  onLoad() {
    this.loadContent();
  },
  methods: {
    goBack() {
      common_vendor.index.navigateBack();
    },
    async loadContent() {
      try {
        this.loading = true;
        const config = await modules_Config.Config.getPublicConfig();
        this.content = config.privacy_policy || "";
      } catch (error) {
        common_vendor.index.__f__("error", "at pages/me/privacy-policy-page.vue:45", "加载隐私政策失败:", 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.privacyPolicy")),
    d: $data.loading
  }, $data.loading ? {} : !$data.content ? {} : {
    f: common_vendor.t($data.content)
  }, {
    e: !$data.content
  });
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f90ed7c3"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/me/privacy-policy-page.js.map
