47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
"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.user_agreement || "";
|
|
} catch (error) {
|
|
common_vendor.index.__f__("error", "at pages/me/user-agreement-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.userAgreement")),
|
|
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-04d01342"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/me/user-agreement-page.js.map
|