diff --git a/app/data/controller/ShopOrderSend.php b/app/data/controller/ShopOrderSend.php index fd8d6745a..62fc77ab5 100644 --- a/app/data/controller/ShopOrderSend.php +++ b/app/data/controller/ShopOrderSend.php @@ -27,6 +27,7 @@ class ShopOrderSend extends Controller */ public function index() { + $this->title = '订单发货管理'; $query = $this->_query($this->table); $query->page(); } diff --git a/app/data/controller/ShopOrderService.php b/app/data/controller/ShopOrderService.php index 0c60c3bef..b4f626807 100644 --- a/app/data/controller/ShopOrderService.php +++ b/app/data/controller/ShopOrderService.php @@ -27,6 +27,7 @@ class ShopOrderService extends Controller */ public function index() { + $this->title = '售后申请管理'; $query = $this->_query($this->table); $query->page(); } diff --git a/app/data/view/shop_order/index.html b/app/data/view/shop_order/index.html index 85eddb949..5b25f522e 100644 --- a/app/data/view/shop_order/index.html +++ b/app/data/view/shop_order/index.html @@ -1,16 +1,14 @@ {extend name="../../admin/view/main"} {block name="content"} -<div class="layui-tab layui-tab-card think-bg-white"> +<div class="layui-tab layui-tab-card"> <ul class="layui-tab-title notselect"> {foreach ['all'=>'全部订单','2'=>'待支付的订单','3'=>'待发货的订单','4'=>'待收货的订单','5'=>'已完成的订单','0'=>'已取消的订单'] as $k=>$v} - {php}$total=isset($totals[$k])?$totals[$k]:0;{/php} - {if isset($type) and $type eq $k.''} - <li data-open="{:url('index')}?type={$k}" class="layui-this">{$v} <sup class="layui-badge absolute border-radius">{$total}</sup></li> + {if isset($type) and $type eq $k} + <li data-open="{:url('index')}?type={$k}" class="layui-this">{$v} <sup class="layui-badge absolute border-radius">{$total[$k]??0}</sup></li> {else} - <li data-open="{:url('index')}?type={$k}">{$v} <sup class="layui-badge absolute border-radius">{$total}</sup></li> - {/if} - {/foreach} + <li data-open="{:url('index')}?type={$k}">{$v} <sup class="layui-badge absolute border-radius">{$total[$k]??0}</sup></li> + {/if}{/foreach} </ul> <div class="layui-tab-content think-box-shadow"> {include file='shop_order/index_search'} diff --git a/app/data/view/shop_order_send/index.html b/app/data/view/shop_order_send/index.html index 381257804..399e9e2ca 100644 --- a/app/data/view/shop_order_send/index.html +++ b/app/data/view/shop_order_send/index.html @@ -4,13 +4,11 @@ <div class="layui-tab layui-tab-card think-bg-white"> <ul class="layui-tab-title notselect"> {foreach ['all'=>'全部订单','2'=>'待支付的订单','3'=>'待发货的订单','4'=>'待收货的订单','5'=>'已完成的订单','0'=>'已取消的订单'] as $k=>$v} - {php}$total=isset($totals[$k])?$totals[$k]:0;{/php} - {if isset($type) and $type eq $k.''} - <li data-open="{:url('index')}?type={$k}" class="layui-this">{$v} <sup class="layui-badge absolute border-radius">{$total}</sup></li> + {if isset($type) and $type eq $k} + <li data-open="{:url('index')}?type={$k}" class="layui-this">{$v} <sup class="layui-badge absolute border-radius">{$total[$k]??0}</sup></li> {else} - <li data-open="{:url('index')}?type={$k}">{$v} <sup class="layui-badge absolute border-radius">{$total}</sup></li> - {/if} - {/foreach} + <li data-open="{:url('index')}?type={$k}">{$v} <sup class="layui-badge absolute border-radius">{$total[$k]??0}</sup></li> + {/if}{/foreach} </ul> <div class="layui-tab-content think-box-shadow"> {include file='shop_order_send/index_search'} diff --git a/app/data/view/shop_order_service/index.html b/app/data/view/shop_order_service/index.html index 86e02973d..6412ca940 100644 --- a/app/data/view/shop_order_service/index.html +++ b/app/data/view/shop_order_service/index.html @@ -4,13 +4,11 @@ <div class="layui-tab layui-tab-card think-bg-white"> <ul class="layui-tab-title notselect"> {foreach ['all'=>'全部订单','2'=>'待支付的订单','3'=>'待发货的订单','4'=>'待收货的订单','5'=>'已完成的订单','0'=>'已取消的订单'] as $k=>$v} - {php}$total=isset($totals[$k])?$totals[$k]:0;{/php} - {if isset($type) and $type eq $k.''} - <li data-open="{:url('index')}?type={$k}" class="layui-this">{$v} <sup class="layui-badge absolute border-radius">{$total}</sup></li> + {if isset($type) and $type eq $k} + <li data-open="{:url('index')}?type={$k}" class="layui-this">{$v} <sup class="layui-badge absolute border-radius">{$total[$k]??0}</sup></li> {else} - <li data-open="{:url('index')}?type={$k}">{$v} <sup class="layui-badge absolute border-radius">{$total}</sup></li> - {/if} - {/foreach} + <li data-open="{:url('index')}?type={$k}">{$v} <sup class="layui-badge absolute border-radius">{$total[$k]??0}</sup></li> + {/if}{/foreach} </ul> <div class="layui-tab-content think-box-shadow"> {include file='shop_order_service/index_search'}