{% extends "./inc/base.html" %} {% block content %}
{% include "./inc/user_left.html" %}
{% for item in list %} {%set i=0%} {% for v in item.goods%} {% if i==0 %} {% else %} {% endif %} {%set i=i+1%} {%endfor%} {% else %} {% endfor %}
订单详情 收货人 金额 状态 操作
{%if item.status == 4 or item.status== 6%} {%endif%} {%if item.pay_status ==0 and item.status != 6%}
剩余
{%endif%}
{{item.create_time|dateformat('Y-m-d H:i:s')}} 订单{{item.order_no}}
{%if v.type%}[{{v.type}}] {%endif%}{{v.title}}
x{{v.goods_nums}}
{{item.accept_name}}
总额 ¥{{item.order_amount|formatCurrency}}
{{item.channel}}
{%if item.pay_status == 0 and item.delivery_status != 1 and item.status != 6 and item.status != 4%} 等待付款 {%elif (item.pay_status == 1 or item.status ==3) and item.delivery_status != 1 and item.status != 6 and item.status != 4%} 等待发货 {%elif item.delivery_status == 1 and item.status != 6 and item.status != 4 %} 等待收货 {%elif item.status == 6%} 已作废 {%elif item.status == 4%} 已完成 {%endif%}
{%if item.pay_status == 0 and item.delivery_status != 1 and item.status != 6 and item.status != 4%} 立即付款 {%elif (item.pay_status == 1 or item.status ==3) and item.delivery_status != 1 and item.status != 6 and item.status != 4%} 提醒发货 {%elif item.delivery_status == 1 and item.status != 6 and item.status != 4 %} 确认收货 {%elif item.status == 4 or item.status == 6%} 再次购买 {%endif%}
{%if v.type%}[{{v.type}}] {%endif%} {{v.title}}
x{{v.goods_nums}}

This would display if the 'item' collection were empty

{{pagination | safe}}
{% endblock %} {% block script %} {% endblock %}