{include(label.header)}

# 我的订单

{foreach($order_list['list'] as $item_time=>$key)} {foreach($key as $order)} {if(empty($order['order_reserve_id']) || isset($order_list['reserve']['id_'.$order['order_reserve_id']]))}

- {$item_time} {$order['addtime']}

- {$order_list['shop']['id_'.$order['order_shop_id']]['shop_name']}

  {set $ii=0} {if(!empty($order['order_ids']))} {foreach($order['menu'] as $menu)} {set $price=0} {if($ii!=0)}，{/if} {foreach($menu as $item)} {if($price!=0)}+{/if}{$order_list['menu']['id_'.$item]['menu_title']} {set $price+=$order_list['price']['id_'.$item]} {/foreach} {set $ii=$ii+1} {/foreach} {/if}
{if(!empty($order['order_reserve_id']))}
- 桌位：{$order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_tablename']}
{/if}
- {if(!empty($order['order_ids']))}金额：{$order['order_total_pay']}{else}订金：{$order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_deposit']}{/if} {if(empty($order['order_reserve_id']))} {$order['state']} {else} {if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==0)} 待付订金 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==1)} 待点菜 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==2)} 待上菜 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']>=10)} 用餐结束 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']>0)} 用餐中 {else} 已取消 {/if} {/if}
- {if(!empty($order['order_reserve_id']))} {if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==0)} 继续付款 取消订单 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==1)} 在线点菜 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==2)} 可以上菜了 我要加菜 {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']>2 && $order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']<10)} 我要加菜 在线买单 {/if} {else} {if($order['order_state'] > 0)} {else if($order['order_state']==-2)} 立即付款 {/if} {if(($order['order_state']==0 && TIME-$order['order_addtime']<300) || $order['order_state']==-2)} 取消订单 {/if} {/if}

{/if} {/foreach} {/foreach}
{if($order_list['pagebtns']['start']!=1)}
- 1
{/if} {if($order_list['pagebtns']['start']>2)}
- ...
{/if} {foreach($order_list['pagebtns']['list'] as $item)} {$item} {/foreach} {if($order_list['pagebtns']['end']<$order_list['pageinfo']['pages']-1)}
- ...
{/if} {if($order_list['pagebtns']['end']<$order_list['pageinfo']['pages'])}
- {$order_list['pageinfo']['pages']}
{/if}
{include(label.footer)}