{% if pay_msg or request.args.get('pay_msg') %}
{{ pay_msg or request.args.get('pay_msg') }}
{% endif %}

订单详情

{{ order.status_text if order.status_text is defined else ('待支付' if order.order_status == 0 else '已支付,待发货' if order.order_status == 1 else '已发货,待收货' if order.order_status == 2 else '已完成' if order.order_status == 3 else '已取消') }}
订单号:{{ order.order_id }}
订单金额:¥ {{ '%.2f'|format(order.total_amount) }}
创建时间:{{ order.created_at }}
支付时间:{{ order.paid_at or '未支付' }}
{% if order.countdown_label is defined and order.countdown_deadline_iso %}
{{ order.countdown_label }}:{{ order.countdown_text }}
{% endif %}
{% if order.order_status == 0 %} 立即支付 {% endif %} {% if order.can_confirm_receipt is defined and order.can_confirm_receipt %}
{% elif shipment and shipment.status == 1 %}
{% endif %} 返回订单列表
{% if address %}

收货地址

{{ address.receiver_name }} {{ address.receiver_phone }}
{{ address.province }} {{ address.city }} {{ address.district }} {{ address.detail_address }}
邮编:{{ address.postal_code or '暂无' }}
{% endif %} {% if shipment %}

物流信息

物流状态: {% if shipment.status == 0 %} 待发货 {% elif shipment.status == 1 %} 已发货 {% elif shipment.status == 2 %} 已签收 {% else %} 状态 {{ shipment.status }} {% endif %}
物流公司:{{ shipment.carrier_name or '暂无' }}
运单号:{{ shipment.tracking_no or '暂无' }}
发货时间:{{ shipment.shipped_at or '暂无' }}
签收时间:{{ shipment.received_at or '暂无' }}
{% endif %}

商品明细

{% for item in items %} {% endfor %}
图片 商品 单价 数量 小计
{{ item.product_name }} ¥ {{ '%.2f'|format(item.price) }} {{ item.quantity }} ¥ {{ '%.2f'|format(item.subtotal) }}
{% if logs %}

状态日志

{% for log in logs %}
{{ log.created_at }} {{ log.remark }}
{% endfor %}
{% endif %}