WXL
20 小时以前 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: "detail",
  setup(__props) {
    const disease = common_vendor.ref({
      id: 1,
      name: "冠心病",
      department: "心内科",
      tags: ["常见病", "慢性病", "心血管疾病"],
      introduction: "冠心病是指冠状动脉血管发生动脉粥样硬化病变而引起血管腔狭窄或阻塞,导致心肌缺血、缺氧或坏死而引起的心脏病。",
      causes: [
        "高血压、高血脂、糖尿病等基础疾病",
        "吸烟、饮酒等不良生活习惯",
        "精神压力过大",
        "年龄、性别、遗传因素等"
      ],
      symptoms: [
        "胸痛、胸闷",
        "心悸、气短",
        "乏力、疲劳",
        "出汗、恶心"
      ],
      treatment: "冠心病的治疗包括药物治疗、介入治疗和手术治疗。药物治疗主要包括抗血小板、他汀类调脂、β受体阻滞剂等;介入治疗主要是冠状动脉支架植入术;手术治疗主要是冠状动脉搭桥术。",
      notices: [
        "保持良好的生活习惯,戒烟限酒",
        "合理饮食,控制高盐高脂饮食",
        "适量运动,避免剧烈运动",
        "保持心情愉快,避免情绪波动"
      ],
      doctors: [
        {
          id: 1,
          name: "张医生",
          title: "主任医师",
          avatar: "/static/doctor/avatar1.jpg"
        },
        {
          id: 2,
          name: "李医生",
          title: "副主任医师",
          avatar: "/static/doctor/avatar2.jpg"
        }
      ]
    });
    const viewDoctor = (doctor) => {
      common_vendor.index.navigateTo({
        url: `/pages/doctor/detail?id=${doctor.id}`
      });
    };
    const showConsult = () => {
      common_vendor.index.showModal({
        title: "提示",
        content: "是否开始在线咨询?",
        success: (res) => {
          if (res.confirm)
            ;
        }
      });
    };
    const makeAppointment = () => {
      common_vendor.index.navigateTo({
        url: `/pages/appointment/department?disease=${disease.value.name}`
      });
    };
    common_vendor.onMounted(() => {
      var _a;
      const pages = getCurrentPages();
      const page = pages[pages.length - 1];
      const { id } = ((_a = page.$page) == null ? void 0 : _a.options) || {};
      common_vendor.index.__f__("log", "at pages/disease/detail.vue:182", "加载疾病详情:", id);
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.t(disease.value.name),
        b: common_vendor.t(disease.value.department),
        c: common_vendor.f(disease.value.tags, (tag, index, i0) => {
          return {
            a: common_vendor.t(tag),
            b: index
          };
        }),
        d: common_vendor.t(disease.value.introduction),
        e: common_vendor.f(disease.value.causes, (item, index, i0) => {
          return {
            a: common_vendor.t(item),
            b: index
          };
        }),
        f: common_vendor.f(disease.value.symptoms, (item, index, i0) => {
          return {
            a: common_vendor.t(item),
            b: index
          };
        }),
        g: common_vendor.t(disease.value.treatment),
        h: common_vendor.f(disease.value.notices, (item, index, i0) => {
          return {
            a: common_vendor.t(item),
            b: index
          };
        }),
        i: common_vendor.f(disease.value.doctors, (item, index, i0) => {
          return {
            a: item.avatar,
            b: common_vendor.t(item.name),
            c: common_vendor.t(item.title),
            d: index,
            e: common_vendor.o(($event) => viewDoctor(item), index)
          };
        }),
        j: common_vendor.o(showConsult),
        k: common_vendor.o(makeAppointment),
        l: common_vendor.gei(_ctx, "")
      };
    };
  }
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/disease/detail.js.map