"use strict";
|
const common_vendor = require("../../common/vendor.js");
|
const common_assets = require("../../common/assets.js");
|
const _sfc_main = {
|
__name: "tcm",
|
setup(__props) {
|
const projects = common_vendor.ref([
|
{
|
id: 1,
|
name: "针灸治疗",
|
desc: "传统针灸结合现代医学",
|
image: "/static/tcm/acupuncture.jpg"
|
},
|
{
|
id: 2,
|
name: "推拿理疗",
|
desc: "专业推拿缓解疼痛",
|
image: "/static/tcm/massage.jpg"
|
},
|
{
|
id: 3,
|
name: "中药调理",
|
desc: "个性化中药处方",
|
image: "/static/tcm/medicine.jpg"
|
},
|
{
|
id: 4,
|
name: "艾灸养生",
|
desc: "传统艾灸温养调理",
|
image: "/static/tcm/moxibustion.jpg"
|
}
|
]);
|
const doctors = common_vendor.ref([
|
{
|
id: 1,
|
name: "张医生",
|
title: "主任医师",
|
specialty: "针灸推拿",
|
avatar: "/static/doctor/tcm1.jpg"
|
},
|
{
|
id: 2,
|
name: "李医生",
|
title: "副主任医师",
|
specialty: "中药调理",
|
avatar: "/static/doctor/tcm2.jpg"
|
}
|
]);
|
const cases = common_vendor.ref([
|
{
|
id: 1,
|
title: "颈椎病针灸治疗案例",
|
desc: "通过针灸配合推拿,显著改善患者颈椎不适...",
|
image: "/static/tcm/case1.jpg",
|
doctor: "张医生",
|
date: "2024-03-20"
|
},
|
{
|
id: 2,
|
title: "失眠中药调理案例",
|
desc: "采用中药辨证施治,改善患者睡眠质量...",
|
image: "/static/tcm/case2.jpg",
|
doctor: "李医生",
|
date: "2024-03-18"
|
}
|
]);
|
const viewProject = (project) => {
|
common_vendor.index.navigateTo({
|
url: `/pages/featured/project?id=${project.id}`
|
});
|
};
|
const viewDoctor = (doctor) => {
|
common_vendor.index.navigateTo({
|
url: `/pages/doctor/detail?id=${doctor.id}`
|
});
|
};
|
const viewCase = (case_) => {
|
common_vendor.index.navigateTo({
|
url: `/pages/featured/case?id=${case_.id}`
|
});
|
};
|
const makeCall = () => {
|
common_vendor.index.makePhoneCall({
|
phoneNumber: "+853 2837 1333"
|
});
|
};
|
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"
|
});
|
};
|
return (_ctx, _cache) => {
|
return {
|
a: common_assets._imports_0$10,
|
b: common_vendor.f(projects.value, (item, index, i0) => {
|
return {
|
a: item.image,
|
b: common_vendor.t(item.name),
|
c: common_vendor.t(item.desc),
|
d: index,
|
e: common_vendor.o(($event) => viewProject(item), index)
|
};
|
}),
|
c: common_vendor.f(doctors.value, (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)
|
};
|
}),
|
d: common_vendor.f(cases.value, (item, index, i0) => {
|
return {
|
a: item.image,
|
b: common_vendor.t(item.title),
|
c: common_vendor.t(item.desc),
|
d: common_vendor.t(item.doctor),
|
e: common_vendor.t(item.date),
|
f: index,
|
g: common_vendor.o(($event) => viewCase(item), index)
|
};
|
}),
|
e: common_vendor.o(makeCall),
|
f: common_vendor.o(showConsult),
|
g: common_vendor.o(makeAppointment),
|
h: common_vendor.gei(_ctx, "")
|
};
|
};
|
}
|
};
|
wx.createPage(_sfc_main);
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/featured/tcm.js.map
|