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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
| "use strict";
| const common_vendor = require("../../common/vendor.js");
| const _sfc_main = {
| __name: "project",
| setup(__props) {
| const project = common_vendor.ref({
| id: 1,
| name: "针灸治疗",
| price: 300,
| image: "/static/tcm/acupuncture.jpg",
| tags: ["专家门诊", "中医特色", "无痛治疗"],
| symptoms: [
| "颈椎病、腰椎病等脊椎疾病",
| "肩周炎、网球肘等关节疾病",
| "偏头痛、失眠等神经系统疾病",
| "胃痛、便秘等消化系统疾病"
| ],
| treatment: `
| <p style="text-indent: 2em; margin-bottom: 1em;">针灸治疗采用传统中医理论,通过刺激人体特定穴位,达到调节阴阳、疏通经络的目的。</p>
| <p style="text-indent: 2em; margin-bottom: 1em;">治疗过程中,医生会根据患者具体情况,选择合适的穴位和针刺手法,一般每次治疗约30-40分钟。</p>
| `,
| treatmentImages: [
| "/static/tcm/treatment1.jpg",
| "/static/tcm/treatment2.jpg"
| ],
| effect: `
| <p style="text-indent: 2em; margin-bottom: 1em;">针灸治疗具有显著的止痛效果,可以改善局部血液循环,促进炎症吸收,加快康复进程。</p>
| <p style="text-indent: 2em; margin-bottom: 1em;">一般需要进行多次治疗,大约6-10次为一个疗程,多数患者在3-5次治疗后即可感受到明显改善。</p>
| `,
| effectImages: [
| "/static/tcm/effect1.jpg",
| "/static/tcm/effect2.jpg"
| ],
| notices: [
| "治疗前2小时内避免空腹或过饱",
| "治疗当天避免剧烈运动",
| "保持穴位局部清洁",
| "如有出血性疾病请提前告知医生"
| ],
| doctors: [
| {
| id: 1,
| name: "张医生",
| title: "主任医师",
| specialty: "针灸推拿",
| avatar: "/static/doctor/tcm1.jpg"
| },
| {
| id: 2,
| name: "李医生",
| title: "副主任医师",
| specialty: "中药调理",
| avatar: "/static/doctor/tcm2.jpg"
| }
| ]
| });
| const previewImage = (index, type) => {
| const images = type === "treatment" ? project.value.treatmentImages : project.value.effectImages;
| common_vendor.index.previewImage({
| urls: images,
| current: index
| });
| };
| 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?type=tcm&project=${project.value.id}`
| });
| };
| 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/featured/project.vue:206", "加载项目详情:", id);
| });
| return (_ctx, _cache) => {
| var _a, _b, _c, _d;
| return common_vendor.e({
| a: project.value.image,
| b: common_vendor.t(project.value.name),
| c: common_vendor.t(project.value.price),
| d: common_vendor.f(project.value.tags, (tag, index, i0) => {
| return {
| a: common_vendor.t(tag),
| b: index
| };
| }),
| e: common_vendor.f(project.value.symptoms, (item, index, i0) => {
| return {
| a: common_vendor.t(item),
| b: index
| };
| }),
| f: project.value.treatment,
| g: (_a = project.value.treatmentImages) == null ? void 0 : _a.length
| }, ((_b = project.value.treatmentImages) == null ? void 0 : _b.length) ? {
| h: common_vendor.f(project.value.treatmentImages, (image, index, i0) => {
| return {
| a: index,
| b: image,
| c: common_vendor.o(($event) => previewImage(index, "treatment"), index)
| };
| })
| } : {}, {
| i: project.value.effect,
| j: (_c = project.value.effectImages) == null ? void 0 : _c.length
| }, ((_d = project.value.effectImages) == null ? void 0 : _d.length) ? {
| k: common_vendor.f(project.value.effectImages, (image, index, i0) => {
| return {
| a: index,
| b: image,
| c: common_vendor.o(($event) => previewImage(index, "effect"), index)
| };
| })
| } : {}, {
| l: common_vendor.f(project.value.notices, (item, index, i0) => {
| return {
| a: common_vendor.t(item),
| b: index
| };
| }),
| m: common_vendor.f(project.value.doctors, (item, index, i0) => {
| return {
| a: item.avatar,
| b: common_vendor.t(item.name),
| c: common_vendor.t(item.title),
| d: common_vendor.t(item.specialty),
| e: index,
| f: common_vendor.o(($event) => viewDoctor(item), index)
| };
| }),
| n: common_vendor.o(showConsult),
| o: common_vendor.o(makeAppointment),
| p: common_vendor.gei(_ctx, "")
| });
| };
| }
| };
| wx.createPage(_sfc_main);
| //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/featured/project.js.map
|
|