WXL
15 小时以前 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
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  __name: "index",
  setup(__props) {
    const vaccineTypes = common_vendor.ref([
      {
        id: 1,
        name: "儿童疫苗",
        desc: "0-6岁常规接种",
        icon: "/static/vaccine/child.png"
      },
      {
        id: 2,
        name: "成人疫苗",
        desc: "18岁以上人群",
        icon: "/static/vaccine/adult.png"
      },
      {
        id: 3,
        name: "老年疫苗",
        desc: "60岁以上人群",
        icon: "/static/vaccine/elder.png"
      },
      {
        id: 4,
        name: "流感疫苗",
        desc: "季节性接种",
        icon: "/static/vaccine/flu.png"
      }
    ]);
    const clinics = common_vendor.ref([
      {
        id: 1,
        name: "青岛镜湖医院预防接种门诊",
        address: "青岛连胜马路33号",
        image: "/static/hospital/kiang-wu.jpg",
        tags: ["全天候接种", "可预约", "免费停车"]
      },
      {
        id: 2,
        name: "青岛科大医院疫苗中心",
        address: "青岛氹仔大学大马路",
        image: "/static/hospital/must.jpg",
        tags: ["专业团队", "环境舒适", "交通便利"]
      }
    ]);
    const notices = [
      "请携带身份证件和接种本",
      "接种前请保持良好的身体状态",
      "接种后请在现场留观30分钟",
      "如有不适请及时就医"
    ];
    const navigateTo = (url) => {
      common_vendor.index.navigateTo({ url });
    };
    const navigateToList = (type) => {
      common_vendor.index.navigateTo({
        url: `/pages/vaccine/list?typeId=${type.id}&typeName=${type.name}`
      });
    };
    const navigateToClinic = (clinic) => {
      common_vendor.index.navigateTo({
        url: `/pages/hospital/detail?id=${clinic.id}`
      });
    };
    return (_ctx, _cache) => {
      return {
        a: common_assets._imports_0$2,
        b: common_assets._imports_1,
        c: common_vendor.o(($event) => navigateTo("/pages/vaccine/book")),
        d: common_assets._imports_2,
        e: common_vendor.o(($event) => navigateTo("/pages/vaccine/record")),
        f: common_assets._imports_3,
        g: common_vendor.o(($event) => navigateTo("/pages/vaccine/list")),
        h: common_vendor.f(vaccineTypes.value, (type, index, i0) => {
          return {
            a: type.icon,
            b: common_vendor.t(type.name),
            c: common_vendor.t(type.desc),
            d: index,
            e: common_vendor.o(($event) => navigateToList(type), index)
          };
        }),
        i: common_vendor.f(clinics.value, (clinic, index, i0) => {
          return {
            a: clinic.image,
            b: common_vendor.t(clinic.name),
            c: common_vendor.t(clinic.address),
            d: common_vendor.f(clinic.tags, (tag, idx, i1) => {
              return {
                a: common_vendor.t(tag),
                b: idx
              };
            }),
            e: index,
            f: common_vendor.o(($event) => navigateToClinic(clinic), index)
          };
        }),
        j: common_vendor.f(notices, (notice, index, i0) => {
          return {
            a: common_vendor.t(notice),
            b: index
          };
        }),
        k: common_vendor.gei(_ctx, "")
      };
    };
  }
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/vaccine/index.js.map