WXL
21 小时以前 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
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  __name: "index",
  setup(__props) {
    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 navigateTo = (url) => {
      common_vendor.index.navigateTo({
        url,
        fail: (err) => {
          common_vendor.index.__f__("error", "at pages/featured/index.vue:179", "跳转失败:", err);
          common_vendor.index.showToast({
            title: "该功能即将上线",
            icon: "none"
          });
        }
      });
    };
    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}`
      });
    };
    return (_ctx, _cache) => {
      return {
        a: common_assets._imports_0$11,
        b: common_assets._imports_1$1,
        c: common_vendor.o(($event) => navigateTo("/pages/featured/tcm")),
        d: common_assets._imports_2$1,
        e: common_vendor.o(($event) => navigateTo("/pages/featured/cross-border")),
        f: common_assets._imports_3$1,
        g: common_vendor.o(($event) => navigateTo("/pages/featured/expert")),
        h: common_assets._imports_4,
        i: common_vendor.o(($event) => navigateTo("/pages/featured/department")),
        j: 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)
          };
        }),
        k: 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)
          };
        }),
        l: common_vendor.gei(_ctx, "")
      };
    };
  }
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/featured/index.js.map