"use strict"; const api_news = require("../../api/news.js"); const utils_index = require("../../utils/index.js"); const common_vendor = require("../../common/vendor.js"); const Header = () => "../../components/header.js"; const _sfc_main = { components: { Header }, data() { return { id: 0, newsDetail: {} }; }, onLoad(option) { const id = option.id; if (id && id !== "null") { this.id = id; this.fetchData(); } }, methods: { formatDate: utils_index.formatDate, async fetchData() { const id = this.id; const params = { id }; const resp = await api_news.getNewsDetail(params); if (resp && resp.bizcode === 100) { this.newsDetail = resp.data || {}; } } } }; if (!Array) { const _component_Header = common_vendor.resolveComponent("Header"); const _easycom_up_image2 = common_vendor.resolveComponent("up-image"); (_component_Header + _easycom_up_image2)(); } const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js"; if (!Math) { _easycom_up_image(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.p({ leftTitle: "", ["left-path-type"]: "navigateTo", ["left-path"]: "/pages/news/news" }), b: common_vendor.t($data.newsDetail.title), c: common_vendor.p({ src: $data.newsDetail.avatar_url, width: "40", height: "40", bgColor: "#f1f6ff00", shape: "circle" }), d: common_vendor.t($data.newsDetail.name), e: common_vendor.t($options.formatDate($data.newsDetail.ctdate)), f: common_vendor.p({ src: "/static/login/show.png", width: "20", height: "20", bgColor: "#f1f6ff00" }), g: common_vendor.t($data.newsDetail.browses), h: $data.newsDetail.content }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5b602ca5"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/news_info/news_info.js.map