"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: "", agreementNodes: "" }; }, 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(1); this.title = res.data.title; this.agreementNodes = res.data.content; } catch (e) { common_vendor.index.__f__("error", "at pages/mine/agreement/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.agreementNodes, c: $options.scrollHeight }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0b7e99d3"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/agreement/index.js.map