40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const api_index = require("../../api/index.js");
|
|
const utils_fun = require("../../utils/fun.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 = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "details",
|
|
setup(__props) {
|
|
const articleItem = common_vendor.ref({});
|
|
common_vendor.onLoad((options) => {
|
|
api_index.api.noticeInfo({ id: options.id }).then((res) => {
|
|
articleItem.value = res;
|
|
});
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.t(articleItem.value.title),
|
|
b: common_vendor.t(common_vendor.unref(utils_fun.timeFormat)(articleItem.value.createTime, "yyyy-MM-dd hh:mm:ss")),
|
|
c: articleItem.value.video
|
|
}, articleItem.value.video ? {
|
|
d: articleItem.value.cover,
|
|
e: articleItem.value.video
|
|
} : {}, {
|
|
f: common_vendor.p({
|
|
content: articleItem.value.content
|
|
})
|
|
});
|
|
};
|
|
}
|
|
});
|
|
wx.createPage(_sfc_main);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/notice/details.js.map
|