|
@@ -9,11 +9,11 @@
|
|
|
{block name="content"}
|
|
|
<div class="layui-tab layui-tab-card">
|
|
|
<ul class="layui-tab-title notselect">
|
|
|
- {foreach ['ta'=>'全部订单','t2'=>'待支付的订单','t3'=>'待审核的订单','t4'=>'待发货的订单','t5'=>'待收货的订单','t6'=>'已完成的订单','t0'=>'已取消的订单'] as $k=>$v}
|
|
|
- {if isset($type) and 't'.$type eq $k}
|
|
|
- <li class="layui-this" data-open="{:url('index')}?type={$k}">{$v}<sup class="layui-badge border-radius">{$total[$k]??0}</sup></li>
|
|
|
+ {php}$types = ['ta' => '全部订单', 't2' => '待支付的订单', 't3' => '待审核的订单', 't4' => '待发货的订单', 't5' => '待收货的订单', 't6' => '已完成的订单', 't0' => '已取消的订单'];{/php}
|
|
|
+ {foreach $types as $k=>$v}{if isset($type) and 't'.$type eq $k}
|
|
|
+ <li class="layui-this" data-open="{:url('index')}?type={$k}"><b>{$v}</b><sup class="layui-badge border-radius">{$total[$k]??0}</sup></li>
|
|
|
{else}
|
|
|
- <li data-open="{:url('index')}?type={$k}">{$v}<sup class="layui-badge border-radius">{$total[$k]??0}</sup></li>
|
|
|
+ <li data-open="{:url('index')}?type={$k}"><b>{$v}</b><sup class="layui-badge border-radius">{$total[$k]??0}</sup></li>
|
|
|
{/if}{/foreach}
|
|
|
</ul>
|
|
|
<div class="layui-tab-content">
|