WXL
17 小时以前 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  __name: "index",
  setup(__props) {
    common_vendor.useI18n();
    const { proxy } = common_vendor.getCurrentInstance();
    const error = common_vendor.ref("");
    common_vendor.ref([
      {
        image: "/static/banner/banner1.png",
        titleKey: "index.banner.smartMedical",
        subtitleKey: "index.banner.convenientService"
      },
      {
        image: "/static/banner/banner2.png",
        titleKey: "index.banner.specializedMedical",
        subtitleKey: "index.banner.crossBorder"
      }
    ]);
    const quickEntries = common_vendor.ref([
      {
        titleKey: "index.quickEntry.CaseDetails",
        icon: "/static/icons/appointment.png",
        path: "/pages/case/CaseDetails",
        bgColor: "linear-gradient(135deg, #0f95b0, #89C4C1)"
      },
      {
        titleKey: "index.quickEntry.caseindex",
        icon: "/static/icons/record.png",
        path: "/pages/case/index",
        bgColor: "linear-gradient(135deg, #4DCEA5, #2FB4AE)"
      },
      {
        titleKey: "index.quickEntry.transfer",
        icon: "/static/icons/record.png",
        path: "/pages/case/transfer",
        bgColor: "linear-gradient(135deg, #FF9B6A, #FF6B8B)"
      },
      // {
      //   titleKey: "index.quickEntry.CaseProgress",
      //   icon: "/static/icons/department.png",
      //   path: "/pages/records/medical",
      //   bgColor: "linear-gradient(135deg, #747CF9, #9B7CF9)",
      // },
      {
        titleKey: "index.quickEntry.investigate",
        icon: "/static/icons/record.png",
        path: "/pages/ethicalReview/index",
        bgColor: "linear-gradient(135deg, #747CF9, #9B7CF9)"
      }
    ]);
    common_vendor.ref([
      {
        titleKey: "index.quickEntry.appointment",
        icon: "/static/icons/appointment.png",
        path: "/pages/appointment/index",
        type: "tab",
        bgColor: "linear-gradient(135deg, #0f95b0, #89C4C1)"
      },
      {
        titleKey: "index.quickEntry.vaccine",
        icon: "/static/icons/vaccine.png",
        path: "/pages/vaccine/index",
        bgColor: "linear-gradient(135deg, #FF9B6A, #FF6B8B)"
      },
      {
        titleKey: "index.quickEntry.records",
        icon: "/static/icons/record.png",
        path: "/pages/records/medical",
        bgColor: "linear-gradient(135deg, #4DCEA5, #2FB4AE)"
      },
      {
        titleKey: "index.quickEntry.department",
        icon: "/static/icons/department.png",
        path: "/pages/department/guide",
        bgColor: "linear-gradient(135deg, #747CF9, #9B7CF9)"
      }
    ]);
    const news = common_vendor.ref([
      {
        titleKey: "index.news.vaccine",
        date: "2025-11-20",
        image: "/static/news/news1.png",
        tagKey: "common.tag.new"
      },
      {
        titleKey: "index.news.cooperation",
        date: "2024-03-19",
        image: "/static/news/news2.png"
      }
    ]);
    common_vendor.ref([
      {
        titleKey: "index.featured.tcm",
        descKey: "index.featured.tcmDesc",
        image: "/static/featured/tcm.png",
        path: "/pages/featured/tcm"
      },
      {
        titleKey: "index.featured.crossBorder",
        descKey: "index.featured.crossBorderDesc",
        image: "/static/featured/cross-border.png",
        path: "/pages/featured/cross-border"
      },
      {
        titleKey: "index.featured.expert",
        descKey: "index.featured.expertDesc",
        image: "/static/featured/expert.png",
        path: "/pages/featured/expert"
      }
    ]);
    const navigateTo = (path, type) => {
      if (type === "tab") {
        common_vendor.index.reLaunch({
          url: path,
          fail: (err) => {
            common_vendor.index.__f__("error", "at pages/index/index.vue:248", "reLaunch fail:", err);
            common_vendor.index.switchTab({
              url: path,
              fail: (err2) => {
                common_vendor.index.__f__("error", "at pages/index/index.vue:252", "switchTab fail:", err2);
                common_vendor.index.navigateTo({
                  url: path,
                  fail: (err3) => {
                    common_vendor.index.__f__("error", "at pages/index/index.vue:256", "navigateTo fail:", err3);
                  }
                });
              }
            });
          }
        });
      } else {
        common_vendor.index.navigateTo({
          url: path,
          fail: (err) => {
            common_vendor.index.__f__("error", "at pages/index/index.vue:267", "navigateTo fail:", err);
          }
        });
      }
    };
    const viewNews = (news2) => {
      common_vendor.index.navigateTo({
        url: `/pages/news/detail?id=${news2.id}`
      });
    };
    common_vendor.onMounted(() => {
      try {
        common_vendor.index.__f__("log", "at pages/index/index.vue:309", "页面加载");
        common_vendor.index.__f__("log", "at pages/index/index.vue:310", "当前语言:", proxy.$i18n.locale);
        common_vendor.index.__f__("log", "at pages/index/index.vue:311", "语言包:", proxy.$i18n.messages);
      } catch (err) {
        error.value = err.message;
        common_vendor.index.__f__("error", "at pages/index/index.vue:314", "页面加载错误:", err);
      }
    });
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: error.value
      }, error.value ? {
        b: common_vendor.t(error.value)
      } : {}, {
        c: common_vendor.f(quickEntries.value, (item, index, i0) => {
          return {
            a: item.icon,
            b: item.bgColor,
            c: common_vendor.t(_ctx.$t(item.titleKey)),
            d: index,
            e: common_vendor.o(($event) => navigateTo(item.path, item.type), index)
          };
        }),
        d: common_vendor.t(_ctx.$t("index.news.title")),
        e: common_vendor.t(_ctx.$t("common.more")),
        f: common_vendor.o(($event) => navigateTo("/pages/news/list")),
        g: common_vendor.f(news.value, (item, index, i0) => {
          return common_vendor.e({
            a: item.image,
            b: common_vendor.t(_ctx.$t(item.titleKey)),
            c: item.tagKey
          }, item.tagKey ? {
            d: common_vendor.t(_ctx.$t(item.tagKey))
          } : {}, {
            e: common_vendor.t(item.date),
            f: index,
            g: common_vendor.o(($event) => viewNews(item), index)
          });
        }),
        h: common_vendor.gei(_ctx, "")
      });
    };
  }
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map