30 lines
799 B
JavaScript
30 lines
799 B
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const api_api = require("../../api/api.js");
|
|
if (!Array) {
|
|
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
|
|
_easycom_mp_html2();
|
|
}
|
|
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
|
|
if (!Math) {
|
|
_easycom_mp_html();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "agreement",
|
|
setup(__props) {
|
|
let info = common_vendor.ref({});
|
|
common_vendor.onLoad(async (options) => {
|
|
let _res = await api_api.selectProtocolInfo({ id: options.id });
|
|
info.value = _res;
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.p({
|
|
content: common_vendor.unref(info).protocolContent
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
my.createPage(_sfc_main);
|