WXL
11 小时以前 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
"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