{% extends 'user_base.html' %} {% block title %}Appointment | COVID-19 Detector {% endblock %} {% block specific_info %}

挂号信息

{%if not appointments%}

您暂时还没有任何挂号信息~

{%endif%} {%for appointment in appointments%} {% set doctor = User.query.get(appointment.doc_id) %} {% set patient = User.query.get(appointment.patient_id) %}
{{doctor.name}}  {{doctor.department}}
感染科  {{doctor.location}}
就诊人  {{appointment.name}}
门诊类型 专家门诊 {{appointment.cost}}元
就诊时间 {{ appointment.date }} {%if appointment.time==1%}上午{%else%}下午{%endif%} {{appointment.num}}号
{% set appointment_date= appointment.date.strftime('%Y-%m-%d') %} {% if today_str>appointment_date%} {% else %}
{%endif%}
{%endfor%}
{% endblock %}