47 lines
1.5 KiB
JavaScript
47 lines
1.5 KiB
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");
|
|
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
|
(_easycom_mp_html2 + _easycom_up_button2)();
|
|
}
|
|
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
|
|
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
|
if (!Math) {
|
|
(_easycom_mp_html + _easycom_up_button)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "trusteeship",
|
|
setup(__props) {
|
|
let info = common_vendor.ref({});
|
|
common_vendor.onLoad(async (options) => {
|
|
let _res = await api_api.selectProtocolInfo({ id: options.id });
|
|
info.value = _res;
|
|
});
|
|
let submit = (e) => {
|
|
if (e) {
|
|
common_vendor.index.$emit("trusteeship", 1);
|
|
common_vendor.index.navigateBack();
|
|
} else {
|
|
common_vendor.index.navigateBack();
|
|
}
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.p({
|
|
content: common_vendor.unref(info).protocolContent
|
|
}),
|
|
b: common_vendor.t(common_vendor.unref(info).protocolName),
|
|
c: common_vendor.o(($event) => common_vendor.unref(submit)(1)),
|
|
d: common_vendor.p({
|
|
color: "#4874e5",
|
|
type: "primary"
|
|
}),
|
|
e: common_vendor.o(($event) => common_vendor.unref(submit)(0))
|
|
};
|
|
};
|
|
}
|
|
};
|
|
my.createPage(_sfc_main);
|