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
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  __name: "confirm",
  setup(__props) {
    const appointmentInfo = common_vendor.ref({
      hospitalName: "青岛镜湖医院",
      hospitalLogo: "/static/hospital/kiang-wu.jpg",
      departmentName: "心内科",
      doctorName: "张医生",
      doctorTitle: "主任医师",
      doctorAvatar: "/static/doctor/doctor1.png",
      fee: 60,
      date: "2024-03-25",
      time: "09:30-10:00"
    });
    const patientInfo = common_vendor.ref({
      name: "张三",
      gender: "男",
      age: 45,
      cardNo: "1234567890"
    });
    const notices = [
      "请您按时就诊,提前15分钟到达医院",
      "请携带就诊卡和有效身份证件",
      "如需取消预约,请提前24小时操作",
      "就诊当天请遵医嘱,保持空腹"
    ];
    const confirmAppointment = () => {
      common_vendor.index.showLoading({
        title: "提交中..."
      });
      setTimeout(() => {
        common_vendor.index.hideLoading();
        common_vendor.index.showModal({
          title: "预约成功",
          content: "您的预约已成功提交",
          showCancel: false,
          success: () => {
            common_vendor.index.redirectTo({
              url: "/pages/appointment/record"
            });
          }
        });
      }, 1500);
    };
    common_vendor.onMounted(() => {
      var _a;
      const pages = getCurrentPages();
      const page = pages[pages.length - 1];
      const { patientId, departmentId, hospitalId, doctorId, scheduleId } = ((_a = page.$page) == null ? void 0 : _a.options) || {};
      loadAppointmentInfo(patientId, departmentId, hospitalId, doctorId, scheduleId);
    });
    const loadAppointmentInfo = (...args) => {
      common_vendor.index.__f__("log", "at pages/appointment/confirm.vue:136", "加载预约信息:", args);
    };
    return (_ctx, _cache) => {
      return {
        a: appointmentInfo.value.hospitalLogo,
        b: common_vendor.t(appointmentInfo.value.hospitalName),
        c: common_vendor.t(appointmentInfo.value.departmentName),
        d: appointmentInfo.value.doctorAvatar,
        e: common_vendor.t(appointmentInfo.value.doctorName),
        f: common_vendor.t(appointmentInfo.value.doctorTitle),
        g: common_vendor.t(appointmentInfo.value.fee),
        h: common_vendor.t(appointmentInfo.value.date),
        i: common_vendor.t(appointmentInfo.value.time),
        j: common_vendor.t(patientInfo.value.name),
        k: common_vendor.t(patientInfo.value.gender),
        l: common_vendor.t(patientInfo.value.age),
        m: common_vendor.t(patientInfo.value.cardNo),
        n: common_vendor.f(notices, (notice, index, i0) => {
          return {
            a: common_vendor.t(notice),
            b: index
          };
        }),
        o: common_vendor.t(appointmentInfo.value.fee),
        p: common_vendor.o(confirmAppointment),
        q: common_vendor.gei(_ctx, "")
      };
    };
  }
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/appointment/confirm.js.map