{extend name="$member_base" /} {block name="right_main"} {php} $params = input(); $params['page'] = input('page', 1); unset($params['action']); $order_type = input('order_type', 'all'); $status = input('status', 'all'); $order_status = api('System.Order.orderStatus', ['order_type' => $order_type]); $order_status = $order_status['data']; $order_type_data = api('System.Order.orderType'); $order_type_data = $order_type_data['data']; $list = api('System.Order.order', $params); $list = $list['data']; $total_count = $list['total_count']; {/php}
我的订单

- 全部订单
{foreach name="$order_status" item="vo"}
- {$vo.status_name}
{/foreach}

订单类型：
  - 全部类型
  {foreach name="$order_type_data" item="vo"}
  - {$vo.name}
  {/foreach}

订单详情 | 收货人 | 金额 | 订单状态 | 操作
--- | --- | --- | --- | ---
{if !empty($list['data'])} {foreach name="$list['data']" item="vo"}
{$vo.create_time|date="Y-m-d H:i:s",###} 订单号：{$vo.order_no} {$vo.shop_name} {$vo.order_type_name}
{foreach name="vo['order_item_list']" item="item" key="k"}
{if $item.gift_flag > 0}赠品{/if} {$item.goods_name} {$item.sku_name} x{$item.num} {if $item.gift_flag eq 0} {if condition="$vo.payment_type eq 4"} {if condition="$vo.order_money>0 && $vo.is_refund eq 1 && $item.refund_status eq 0 && $vo.order_status eq 2"} 申请维权 {elseif condition="$vo.order_money>0 && $item.refund_status neq 0"} 查看退款 {notin name="$item.refund_status" value="5,-1,-2"} {notin name="$vo.order_status" value="4,5"} 取消退款 {/notin} {/notin} {/if} {else /} {if condition="$vo.order_money>0 && $vo.is_refund eq 1 && $item.refund_status eq 0"} 申请维权 {elseif condition="$vo.order_money>0 && $item.refund_status neq 0"} 查看退款 {notin name="$item.refund_status" value="5,-1,-2"} {notin name="$vo.order_status" value="4,5"} 取消退款 {/notin} {/notin} {/if} {/if} {if condition="$vo.order_money>0 && $vo.order_status eq 4 && $order_item['customer_info'] == '' && $vo.is_virtual == 0"} 申请售后 {elseif condition="$vo.order_money>0 && $vo.order_status eq 4 && $order_item['customer_info'] != ''"} 查看售后 {/if} {/if} {if condition="$k eq 0"} | {if $vo.is_virtual eq 0} {$vo.receiver_name} {$vo.receiver_address} {$vo.receiver_mobile} {else/} {$vo.receiver_mobile} {/if} | 总额 ¥{$vo.order_money} 应付 {$vo.pay_money} {$vo.pay_type_name} | {$vo.status_name} 订单详情 | {notempty name="$vo['member_operation']"} {foreach name="$vo['member_operation']" item="operation"} {$operation.name} {/foreach} {/notempty} {if condition="$vo.order_status eq 3 OR $vo.order_status eq 4"} {if condition="$vo.is_evaluate eq 0"} {:lang('member_i_want_evaluate')} {elseif condition="$vo.is_evaluate eq 1"} {:lang('goods_additional_evaluation')} {/if} {/if} {/if}
{/foreach}
{/foreach} {else/}
{:lang('member_no_order_yet')} {:lang('member_go_and_see')} {:lang('member_look_around')}
{/if}

{if condition="$total_count>0"}

{/if}

到门店提货时将此二维码展示给门店审核人员

{/block} {block name="script"}
{/block}