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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
| "use strict";
| const common_vendor = require("../../common/vendor.js");
| const _sfc_main = {
| __name: "detail",
| setup(__props) {
| const doctor = common_vendor.ref({
| id: 1,
| name: "张医生",
| title: "主任医师",
| avatar: "/static/doctor/avatar1.jpg",
| hospital: "青岛镜湖医院",
| department: "心内科",
| tags: ["专家门诊", "视频问诊"],
| experience: 20,
| rating: 4.9,
| patients: 12580,
| specialty: "擅长冠心病、高血压、心律失常等心血管疾病的诊治,在心血管疾病的预防、诊断和治疗方面有丰富经验。",
| introduction: "张医生从事心血管专业20余年,曾在北京协和医院进修学习。现任青岛镜湖医院心内科主任医师,青岛心血管病学会会员。在心血管疾病的诊治方面积累了丰富的临床经验,尤其在冠心病、高血压、心律失常等方面有较深造诣。",
| schedules: [
| {
| date: "03-25",
| day: "今天",
| period: "上午",
| price: 300,
| remain: 2
| },
| {
| date: "03-26",
| day: "明天",
| period: "下午",
| price: 300,
| remain: 5
| },
| {
| date: "03-27",
| day: "周三",
| period: "上午",
| price: 300,
| remain: 8
| }
| ],
| reviews: [
| {
| id: 1,
| name: "张**",
| avatar: "/static/avatar/user1.jpg",
| time: "2024-03-20",
| rating: 5,
| content: "张医生很专业,态度也很好,详细解答了我的问题,让我对病情有了更清晰的认识。"
| },
| {
| id: 2,
| name: "李**",
| avatar: "/static/avatar/user2.jpg",
| time: "2024-03-19",
| rating: 5,
| content: "医术精湛,服务周到,值得信赖的好医生。"
| }
| ]
| });
| const selectedSchedule = common_vendor.ref(0);
| const selectSchedule = (index) => {
| selectedSchedule.value = index;
| };
| const showConsult = () => {
| common_vendor.index.showModal({
| title: "提示",
| content: "是否开始在线咨询?",
| success: (res) => {
| if (res.confirm)
| ;
| }
| });
| };
| const makeAppointment = () => {
| const schedule = doctor.value.schedules[selectedSchedule.value];
| common_vendor.index.navigateTo({
| url: `/pages/appointment/confirm?doctorId=${doctor.value.id}&date=${schedule.date}&period=${schedule.period}`
| });
| };
| common_vendor.onMounted(() => {
| var _a;
| const pages = getCurrentPages();
| const page = pages[pages.length - 1];
| const { id, name, hospital } = ((_a = page.$page) == null ? void 0 : _a.options) || {};
| common_vendor.index.__f__("log", "at pages/doctor/detail.vue:200", "加载医生详情:", id, name, hospital);
| });
| return (_ctx, _cache) => {
| return {
| a: doctor.value.avatar,
| b: common_vendor.t(doctor.value.name),
| c: common_vendor.t(doctor.value.title),
| d: common_vendor.t(doctor.value.hospital),
| e: common_vendor.f(doctor.value.tags, (tag, index, i0) => {
| return {
| a: common_vendor.t(tag),
| b: index
| };
| }),
| f: common_vendor.t(doctor.value.experience),
| g: common_vendor.t(doctor.value.rating),
| h: common_vendor.t(doctor.value.patients),
| i: common_vendor.t(doctor.value.specialty),
| j: common_vendor.t(doctor.value.introduction),
| k: common_vendor.f(doctor.value.schedules, (item, index, i0) => {
| return {
| a: common_vendor.t(item.date),
| b: common_vendor.t(item.day),
| c: common_vendor.t(item.period),
| d: common_vendor.t(item.price),
| e: common_vendor.t(item.remain),
| f: index,
| g: selectedSchedule.value === index ? 1 : "",
| h: common_vendor.o(($event) => selectSchedule(index), index)
| };
| }),
| l: common_vendor.f(doctor.value.reviews, (item, index, i0) => {
| return {
| a: item.avatar,
| b: common_vendor.t(item.name),
| c: common_vendor.t(item.time),
| d: common_vendor.f(5, (n, k1, i1) => {
| return {
| a: n
| };
| }),
| e: common_vendor.t(item.content),
| f: index
| };
| }),
| m: common_vendor.o(showConsult),
| n: common_vendor.o(makeAppointment),
| o: common_vendor.gei(_ctx, "")
| };
| };
| }
| };
| wx.createPage(_sfc_main);
| //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/doctor/detail.js.map
|
|