WXL
11 小时以前 05c363fdd7ab04e3bd9a753e2c5d5bfff04d681c
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  __name: "report",
  setup(__props) {
    const report = common_vendor.ref({
      name: "心电图检查",
      examTime: "2024-03-25 10:00",
      reportTime: "2024-03-25 11:30",
      examDoctor: "王医生",
      reviewDoctor: "李主任",
      findings: "窦性心律,心率75次/分,电轴正常,各导联ST-T改变不明显...",
      diagnosis: "心电图大致正常",
      images: [
        "/static/report/ecg1.jpg",
        "/static/report/ecg2.jpg"
      ],
      references: [
        {
          name: "心率",
          value: "75",
          range: "60-100次/分",
          status: "normal"
        },
        {
          name: "PR间期",
          value: "160",
          range: "120-200ms",
          status: "normal"
        },
        {
          name: "QT间期",
          value: "420",
          range: "350-440ms",
          status: "normal"
        }
      ]
    });
    const previewImage = (index) => {
      common_vendor.index.previewImage({
        urls: report.value.images,
        current: index
      });
    };
    const downloadReport = () => {
      common_vendor.index.showLoading({
        title: "下载中..."
      });
      setTimeout(() => {
        common_vendor.index.hideLoading();
        common_vendor.index.showToast({
          title: "下载成功",
          icon: "success"
        });
      }, 2e3);
    };
    const shareReport = () => {
      common_vendor.index.share({
        provider: "weixin",
        scene: "WXSceneSession",
        type: 1,
        summary: "分享我的检查报告",
        success: function(res) {
          common_vendor.index.__f__("log", "at pages/records/report.vue:151", "分享成功:", res);
        },
        fail: function(err) {
          common_vendor.index.__f__("log", "at pages/records/report.vue:154", "分享失败:", err);
        }
      });
    };
    common_vendor.onMounted(() => {
      var _a, _b;
      const pages = getCurrentPages();
      const page = pages[pages.length - 1];
      (_b = (_a = page.$page) == null ? void 0 : _a.options) == null ? void 0 : _b.id;
      loadReportDetail();
    });
    const loadReportDetail = (id) => {
    };
    return (_ctx, _cache) => {
      var _a, _b, _c, _d;
      return common_vendor.e({
        a: common_vendor.t(report.value.name),
        b: common_vendor.t(report.value.examTime),
        c: common_vendor.t(report.value.reportTime),
        d: common_vendor.t(report.value.examDoctor),
        e: common_vendor.t(report.value.reviewDoctor),
        f: common_vendor.t(report.value.findings),
        g: common_vendor.t(report.value.diagnosis),
        h: (_a = report.value.images) == null ? void 0 : _a.length
      }, ((_b = report.value.images) == null ? void 0 : _b.length) ? {
        i: common_vendor.f(report.value.images, (img, index, i0) => {
          return {
            a: index,
            b: img,
            c: common_vendor.o(($event) => previewImage(index), index)
          };
        })
      } : {}, {
        j: (_c = report.value.references) == null ? void 0 : _c.length
      }, ((_d = report.value.references) == null ? void 0 : _d.length) ? {
        k: common_vendor.f(report.value.references, (item, index, i0) => {
          return {
            a: common_vendor.t(item.name),
            b: common_vendor.t(item.value),
            c: common_vendor.n(item.status),
            d: common_vendor.t(item.range),
            e: index
          };
        })
      } : {}, {
        l: common_vendor.o(downloadReport),
        m: common_vendor.o(shareReport),
        n: common_vendor.gei(_ctx, "")
      });
    };
  }
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/records/report.js.map