{template 'common/header'} {template 'common'} {if $operation == 'display'}
{loop $list $item} {/loop}
订单号 姓名 电话 支付方式 配送方式 运费 总价 状态 下单时间 操作
{$item['ordersn']} {$address[$item['addressid']]['realname']} {$address[$item['addressid']]['mobile']} {if $item['paytype'] == 2}在线支付{/if}{if $item['paytype'] == 3}货到付款{/if} {if empty($item['dispatch'])}自提{else}{$item['dispatch']['dispatchname']}{/if} {$item['dispatchprice']} {$item['price']} 元 {if $item['status'] == 0}待付款{/if} {if $item['status'] == 1}待发货{/if} {if $item['status'] == 2}待收货{/if} {if $item['status'] == 3}已完成{/if} {if $item['status'] == -1}已关闭{/if} {php echo date('Y-m-d H:i:s', $item['createtime'])} 查看订单
{$pager}
{elseif $operation == 'detail'}
{if $item['transid']}
此为微信支付订单,必须要提交发货状态!
{/if}

订单信息

{if $item['transid']} {/if}
{$item['transid']}
{$item['price']} 元 (商品: {$item['goodsprice']} 元 运费: {$item['dispatchprice']} 元)
{if empty($dispatch)}自提{else}{$dispatch['dispatchname']}{/if}
{if $item['paytype'] == 1}余额支付{/if} {if $item['paytype'] == 2}在线支付{/if} {if $item['paytype'] == 3}货到付款{/if}
{if $item['status'] == 0}待付款{/if} {if $item['status'] == 1}待发货{/if} {if $item['status'] == 2}待收货{/if} {if $item['status'] == 3}已完成{/if} {if $item['status'] == -1}已关闭{/if}
{php echo date('Y-m-d H:i:s', $item['createtime'])}
备注

用户信息

{$item['user']['realname']}
{$item['user']['mobile']}
{$item['user']['qq']}
{$item['user']['province']}{$item['user']['city']}{$item['user']['area']}{$item['user']['address']}

商品信息 (2014年7月18号以前的订单商品的成交价为0正常,以后会记录购买时商品的价格,防止商品价格变动记录困难)

{loop $item['goods'] $goods} {/loop}
ID 商品标题 商品规格 商品编号 商品条码 销售价/成本价 属性 成交价 数量 操作
{$goods['id']} {if $category[$goods['pcate']]['name']} [{$category[$goods['pcate']]['name']}] {/if}{if $children[$goods['pcate']][$goods['ccate']][1]} [{$children[$goods['pcate']][$goods['ccate']][1]}] {/if} {$goods['title']} {if !empty($goods['optionname'])}{$goods['optionname']}{/if} {$goods['goodssn']} {$goods['productsn']} {$goods['marketprice']}元 / {$goods['productprice']}元 {if $goods['status']==1}上架{else}下架{/if} {if $goods['type'] == 1}实体商品{else}虚拟商品{/if} {$goods['orderprice']} {$goods['total']} 编辑  删除
{if empty($item['status'])} {elseif $item['status'] == 1} {if !empty($dispatch)} {/if} {elseif $item['status'] == 2} {if !empty($dispatch)} {/if} {elseif $item['status'] == 3} {/if} {if $item['status'] != 3} {/if}
{/if} {template 'common/footer'}