wangzhibo
2025-10-23 cad64c1de2c45856b0774933c5801b05b64984e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  data() {
    return {
      item: {
        title: "",
        createTime: "",
        category: "",
        content: ""
      }
    };
  },
  onLoad(options) {
    if (options.data) {
      try {
        this.item = JSON.parse(decodeURIComponent(options.data));
        this.item.content = this.item.content.replace(
          /<img([^>]*?)>/g,
          `<img$1 style="max-width: 100%; height: auto; display: block;">`
        );
        common_vendor.index.__f__("log", "at pages/index/notices-detail.vue:47", "接收到的 item:", this.item);
      } catch (e) {
        common_vendor.index.__f__("error", "at pages/index/notices-detail.vue:49", "解析传参出错:", e);
      }
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: common_vendor.t($data.item.title),
    b: common_vendor.t($data.item.createTime),
    c: common_vendor.t($data.item.category),
    d: $data.item.content
  };
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e6dee96f"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/notices-detail.js.map