"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