| 123456789101112131415161718192021222324252627282930313233 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const api_auth = require("../../api/auth.js");
- const _sfc_main = {
- __name: "privacy_policy",
- setup(__props) {
- const privacyContent = common_vendor.ref('<p style="text-align: center; padding: 20px;">内容加载中...</p>');
- common_vendor.onMounted(async () => {
- try {
- const res = await api_auth.getAgreement("privacy");
- if (res && res.data) {
- privacyContent.value = res.data.content || '<p style="text-align: center; padding: 20px;">暂无相关协议内容</p>';
- if (res.data.title) {
- common_vendor.index.setNavigationBarTitle({
- title: res.data.title
- });
- }
- }
- } catch (err) {
- common_vendor.index.__f__("error", "at pages/my/privacy_policy.vue:32", "获取隐私政策失败:", err);
- privacyContent.value = '<p style="text-align: center; padding: 20px; color: #999;">协议加载失败,请稍后重试</p>';
- }
- });
- return (_ctx, _cache) => {
- return {
- a: privacyContent.value
- };
- };
- }
- };
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e5797e7d"]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/privacy_policy.js.map
|