"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: `
针灸治疗采用传统中医理论,通过刺激人体特定穴位,达到调节阴阳、疏通经络的目的。
治疗过程中,医生会根据患者具体情况,选择合适的穴位和针刺手法,一般每次治疗约30-40分钟。
`, treatmentImages: [ "/static/tcm/treatment1.jpg", "/static/tcm/treatment2.jpg" ], effect: `针灸治疗具有显著的止痛效果,可以改善局部血液循环,促进炎症吸收,加快康复进程。
一般需要进行多次治疗,大约6-10次为一个疗程,多数患者在3-5次治疗后即可感受到明显改善。
`, 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