{include(header)} {include(member_left)}
{tab_other_language::get("订单管理")}
{set $ii=0} {if(count($order_list['list'])>0)} {foreach($order_list['list'] as $wekday=>$key)}
{$wekday}（{fun_get::weekday($wekday)}）
{foreach($key as $item)} {if(empty($item['order_reserve_id']) || isset($order_list['reserve']['id_'.$item['order_reserve_id']]))}

- {$item['shop_name']}

  {$item['shop_tel']}

- {tab_other_language::get("订单号")}：{$item['order_id']}

  {tab_other_language::get("时间")}：{$wekday} {$item['addtime']}

- {if(empty($item['order_reserve_id']))} {$item['state']} {else} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==0)} {tab_other_language::get("待付订金")} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==1)} {tab_other_language::get("待点菜")} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==2)} {tab_other_language::get("待上菜")} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>=10)} {tab_other_language::get("用餐结束")} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>0)} {tab_other_language::get("用餐中")} {else} {tab_other_language::get("已取消")} {/if} {/if}
- {if(empty($item['order_reserve_id']))} {if($item['order_state']!=0)} {tab_other_language::get("展开详情")} {else} {tab_other_language::get("收起详情")} {/if} {else} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>=0 && $order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']!=10)} {tab_other_language::get("收起详情")} {else} {tab_other_language::get("展开详情")} {/if} {/if}
{if(empty($item['order_reserve_id']) && $item['order_state']!=0)}

{else if($item['order_reserve_id'] && ($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']<0 || $order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==10))}

{else}

{/if} {set $ii=1} {set $ii=count($item['menu'])+2}
{if(!empty($item['order_ids']))}{tab_other_language::get("商品")}{/if} | {if(!empty($item['order_ids']))}{tab_other_language::get("数量")}{/if} | {if(!empty($item['order_ids']))}小计{/if}{if(!empty($item['order_reserve_id']))} | {tab_other_language::get("操作")}{/if} | {if(empty($item['order_reserve_id']))} {if($item['order_pay_method']=='onlinepayment')} {if($item['order_state']==-2)} {tab_other_language::get("订单提交成功，等待付款")} {else if($item['order_state']>=0)} {tab_other_language::get("支付成功，等待商家接单")} {else} {tab_other_language::get("超时未支付")} {/if} {else} {tab_other_language::get("下单成功，等待商家接单")} {if($item['order_state']==0)} {/if} {/if} {if($item['order_state']==1)} {tab_other_language::get("商家已接单，正在配送中")} {tab_other_language::get("订单完成")} {if($item['order_comment']==0)}'comment','order_id'=>$item['order_id']))}',w:500,max_h:650,showbtnhide:false,showbtnmax:false,type:'iframe'});">{else}'comment','order_id'=>$item['order_id']))}',w:500,max_h:650,showbtnhide:false,showbtnmax:false,type:'iframe'});">{/if} {else if($item['order_state']==0 || $item['order_state']==-2)} {tab_other_language::get("商家已接单，正在配送中")} {tab_other_language::get("订单完成")} {else} {$item['state']}{if(!empty($item['order_state_beta']))} ({$item['order_state_beta']}){/if} {/if} {else} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==0)} {tab_other_language::get("等待付订金")} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>0)} {tab_other_language::get("预订成功，等待到位")} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==1)} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==2)} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']<10)} {/if} {else} {tab_other_language::get("已取消")} {/if} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>2)} {tab_other_language::get("已到位，用餐中")} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']<10)}{/if} {else} {tab_other_language::get("已到位，用餐中")} {/if} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==10)} {tab_other_language::get("订单完成")} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==11)} {tab_other_language::get("订单完成,线下结款")} {else} {tab_other_language::get("订单完成")} {/if} {/if}
{if(!empty($item['order_ids']))} {foreach($item['menu'] as $menu)}
{set $price=0} {foreach($menu as $item_menu)} {set $price+=$order_list['price']['id_'.$item_menu]} {$order_list['menu']['id_'.$item_menu]['menu_title']} {/foreach} | {$item['menunum'][implode(',',$menu)]}份 | {fun_kj::get_price($price*$item['menunum'][implode(',',$menu)])} {if(!empty($item['order_reserve_id']))} {set $menuid=implode(',',$menu)} | [{tab_other_language::get("取消")}] {/if}
{/foreach} {/if}
- {if(empty($item['order_reserve_id']))}

  {tab_other_language::get("联系人")}：{$item['order_name']}

  {tab_other_language::get("联系电话")}：{$item['order_mobile']}

  {tab_other_language::get("配送地址")}：{$item["order_area"]} — {$item['order_louhao1']}

  {tab_other_language::get("付款方式")}：{if($item['order_pay_method']=='onlinepayment')}在线支付")}{else if($item['order_pay_method']=='paymented')}已抵扣")}{else}{tab_other_language::get("货到付款")}{/if}

  {tab_other_language::get("送货时间")}：{$item['order_arrive']}

  {tab_other_language::get("备注")}：{$item['order_beta']}

  {else}

  {tab_other_language::get("桌位")}：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_tablename']}

  {tab_other_language::get("人数")}：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_num']}

  {tab_other_language::get("联系人")}：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_name']}

  {tab_other_language::get("电话")}：{$order_list['reserve']['id_'.$item['order_reserve_id']]["reserve_tel"]}

  {tab_other_language::get("备注")}：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_beta']}

  {/if}
{if(!empty($item['order_act']))}
- {foreach($item['order_act'] as $act)} {$act} {/foreach}
{/if}
- {if(!empty($item['order_ids']))}

  {tab_other_language::get("商品")} {fun_kj::get_price($item['order_total'])}{if($item['order_addprice']>0)} + {tab_other_language::get("配送费")} {fun_kj::get_price($item['order_addprice'])}{/if}{if($item['order_score_money']>0)} - {tab_other_language::get("抵扣")} {fun_kj::get_price($item['order_score_money'])}{/if}{if($item['order_favorable']>0)} - {tab_other_language::get("优惠")} {fun_kj::get_price($item['order_favorable'])}{/if}{if($item['order_repayment']>0)} - {tab_other_language::get("预付款")} {fun_kj::get_price($item['order_repayment'])}{/if} = {tab_other_language::get("应付")}：{fun_kj::get_price($item['order_total_pay'])}

  {else}

  {tab_other_language::get("预付订金")}：{cfg:(coinsign,sys)}{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_deposit']}

  {/if}

{/if} {/foreach} {/foreach}
{tab_other_language::get("上一页")} {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} {tab_other_language::get("下一页")}
{else}

- #
  {tab_other_language::get("还没有您的订单")}

{/if}

{include(footer)}