"use strict"; const common_vendor = require("../../../common/vendor.js"); const request_api = require("../../../request/api.js"); const common_assets = require("../../../common/assets.js"); const _sfc_main = { data() { return { navH: common_vendor.inject("navHeight"), navTitle: "", type: "", //1.关于我们2.服务条款3.隐私协议 webContent: "" }; }, onLoad(e) { if (e.type) { this.type = e.type; this.getUserInfoData(); if (e.type == 1) { this.navTitle = "关于我们"; } else if (e.type == 2) { this.navTitle = "服务条款"; } else if (e.type == 3) { this.navTitle = "隐私协议"; } } }, methods: { /** * 获取用户信息数据 */ getUserInfoData() { request_api.agreements().then((res) => { if (res.code == 200) { if (this.type == 1) { this.webContent = res.data.agreements.about_us.content; } else if (this.type == 2) { this.webContent = res.data.agreements.service_terms.content; } else if (this.type == 3) { this.webContent = res.data.agreements.privacy_policy.content; } } else common_vendor.wx$1.showToast({ title: res.message }); }).catch((error) => { }); } } }; if (!Array) { const _easycom_navBar2 = common_vendor.resolveComponent("navBar"); _easycom_navBar2(); } const _easycom_navBar = () => "../../../components/navBar/navBar.js"; if (!Math) { _easycom_navBar(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.p({ leftText: $data.navTitle }), b: common_assets._imports_0, c: common_vendor.t($data.webContent), d: common_vendor.s("top:" + $data.navH + "px;") }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/web/web.js.map