修改订单模板

This commit is contained in:
邹景立 2021-04-17 14:09:08 +08:00
parent 8402d815d3
commit 170cfd0230
2 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@
{block name="content"}
<div class="layui-tab layui-tab-card">
<ul class="layui-tab-title notselect">
{php}$types = ['ta' => '全部订单', 't2' => '待支付的订单', 't3' => '待审核的订单', 't4' => '待发货的订单', 't5' => '待收货的订单', 't6' => '已完成的订单', 't0' => '已取消的订单'];{/php}
{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}">{$v}<sup class="layui-badge border-radius">{$total[$k]??0}</sup></li>
{else}
@ -59,13 +59,13 @@
</div>
</td>
<td class='nowrap'>
{eq name='vo.status' value='0'}<span class="layui-badge layui-badge-middle layui-bg-gray layui-border-cyan" data-tips-text="{$vo.cancel_remark}">取消</span>{/eq}
{eq name='vo.status' value='1'}<span class="layui-badge layui-badge-middle layui-bg-red">订单</span>{/eq}
{eq name='vo.status' value='2'}<span class="layui-badge layui-badge-middle layui-bg-red">待付款</span>{/eq}
{eq name='vo.status' value='3'}<span class="layui-badge layui-badge-middle layui-bg-orange">待审核</span>{/eq}
{eq name='vo.status' value='4'}<span class="layui-badge layui-badge-middle layui-bg-black">待发货</span>{/eq}
{eq name='vo.status' value='5'}<span class="layui-badge layui-badge-middle layui-bg-green">发货</span>{/eq}
{eq name='vo.status' value='6'}<span class="layui-badge layui-badge-middle layui-bg-blue">完成</span>{/eq}
{eq name='vo.status' value='0'}<span class="layui-badge layui-badge-middle layui-bg-gray layui-border-cyan" data-tips-text="{$vo.cancel_remark}">取消</span>{/eq}
{eq name='vo.status' value='1'}<span class="layui-badge layui-badge-middle layui-bg-red">订单</span>{/eq}
{eq name='vo.status' value='2'}<span class="layui-badge layui-badge-middle layui-bg-red">等待待付款</span>{/eq}
{eq name='vo.status' value='3'}<span class="layui-badge layui-badge-middle layui-bg-orange">待审核</span>{/eq}
{eq name='vo.status' value='4'}<span class="layui-badge layui-badge-middle layui-bg-black">待发货</span>{/eq}
{eq name='vo.status' value='5'}<span class="layui-badge layui-badge-middle layui-bg-green">发货</span>{/eq}
{eq name='vo.status' value='6'}<span class="layui-badge layui-badge-middle layui-bg-blue">完成</span>{/eq}
<div class="inline-block text-middle">
<div class="sub-strong-blue">
订单单号:<b>{$vo.order_no|default=''}</b>

View File

@ -49,7 +49,7 @@
<label class="layui-input-inline">
<select class="layui-select" name="status">
<option value=''>- 全部订单 -</option>
{foreach ['2'=>'待付','3'=>'待发货','4'=>'已发货','5'=>'已完成'] as $k=>$v}
{foreach ['1'=>'预购订单','2'=>'付','3'=>'等待审核','4'=>'等待发货','5'=>'已经发货','6'=>'已经完成','0'=>'已经取消'] as $k=>$v}
{if input('status') eq $k.''}
<option selected value="{$k}">{$v}</option>
{else}
@ -64,7 +64,7 @@
<label class="layui-input-inline">
<select class="layui-select" name="payment_status">
<option value=''>-- 全部 --</option>
{foreach ['0'=>'未支付的订单','1'=>'已支付的订单'] as $k=>$v}
{foreach ['0'=>'等待支付','1'=>'已支付'] as $k=>$v}
{if input('payment_status') eq $k.''}
<option selected value="{$k}">{$v}</option>
{else}