"use strict";
const common_vendor = require("../../../common/vendor.js");
const api_system_agreement = require("../../../api/system/agreement.js");
const ErpNavBar = () => "../../../components/erp-nav-bar.js";
const _sfc_main = {
  components: { ErpNavBar },
  data() {
    return {
      statusBarHeight: 20,
      title: "",
      privacyNodes: ""
    };
  },
  computed: {
    scrollHeight() {
      return `calc(100vh - ${this.statusBarHeight + 44}px)`;
    }
  },
  async onLoad() {
    this.statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight || 20;
    try {
      const res = await api_system_agreement.getAgreement(2);
      this.title = res.data.title;
      this.privacyNodes = res.data.content;
    } catch (e) {
      common_vendor.index.__f__("error", "at pages/mine/privacy/index.vue:37", "[隐私政策] 加载失败", e);
    }
  },
  methods: {
    goBack() {
      common_vendor.index.navigateBack();
    }
  }
};
if (!Array) {
  const _component_erp_nav_bar = common_vendor.resolveComponent("erp-nav-bar");
  _component_erp_nav_bar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: common_vendor.p({
      title: $data.title
    }),
    b: $data.privacyNodes,
    c: $options.scrollHeight
  };
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2b75265c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/privacy/index.js.map
