"use strict"; const common_vendor = require("../../common/vendor.js"); const _sfc_main = { __name: "index", setup(__props) { const order = common_vendor.ref({ amount: 100, hospital: "青岛镜湖医院", department: "心内科", doctorName: "张医生", doctorTitle: "主任医师", patientName: "张三", date: "2024-03-21", time: "09:00", orderNo: "AP202403210001" }); const paymentMethods = [ { name: "微信支付", value: "wechat", icon: "/static/payment/wechat.png" }, { name: "支付宝", value: "alipay", icon: "/static/payment/alipay.png" } ]; const selectedMethod = common_vendor.ref("wechat"); const selectMethod = (method) => { selectedMethod.value = method; }; const confirmPay = () => { 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); }; return (_ctx, _cache) => { return { a: common_vendor.t(order.value.amount), b: common_vendor.t(order.value.hospital), c: common_vendor.t(order.value.department), d: common_vendor.t(order.value.doctorName), e: common_vendor.t(order.value.doctorTitle), f: common_vendor.t(order.value.patientName), g: common_vendor.t(order.value.date), h: common_vendor.t(order.value.time), i: common_vendor.t(order.value.orderNo), j: common_vendor.f(paymentMethods, (method, index, i0) => { return { a: method.icon, b: common_vendor.t(method.name), c: index, d: selectedMethod.value === method.value ? 1 : "", e: common_vendor.o(($event) => selectMethod(method.value), index) }; }), k: common_vendor.t(order.value.amount), l: common_vendor.o(confirmPay), m: common_vendor.gei(_ctx, "") }; }; } }; wx.createPage(_sfc_main); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/payment/index.js.map