"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
|