html
```
{include file="../application/abt/view/pc/common/header_menu.html" /}
<div class="layui-col-md9" style="width:100%;">
<div class="layui-tab">
<ul class="layui-tab-title">
<li class="layui-this"><a href="/abt/index/order_list/" target="_blank">订单列表</a></li>
</ul>
</div>
<form class="layui-form" method="get">
<div class="layui-form-item">
<!-- <a href="{$htmanniu['url']}"><span class="layui-btn">左侧导航1</span></a> -->
<div class="layui-form" style="float:right">
<div class="layui-input-inline" style="width: 280px;" >
<input type="text" placeholder="订单编号" class="layui-input" name="order_id" value="{$_GET['order_id']}">
</div>
<input type="hidden" name="search" value="1" />
<button type="submit" class="layui-btn">搜索</button>
</div>
</div>
</form>
<table class="layui-table">
<tr>
<th style="width:22%;">订单编号</th>
<th>相关产品</th>
<th style="width:7%;">金额</th>
<th style="width:13%;">创建时间</th>
<th style="width:9%;">状态</th>
<th style="width:13%;">操作</th>
</tr>
{volist name="list" id="val"}
{php}{/php}
<tr>
<td>{$val['order_id']}</td>
<td title="{$val['title']}">
<a href="{$val['surl']}" target="_blank">{:str_cut($val['title'],30)}</a>
</td>
<td><span class="layui-badge layui-bg-black">{$val['amount']}</span></td>
<td title="{:date('Y-m-d H:i',$val['create_time'])}">{:date('m-d H:i',$val['create_time'])}</td>
<td>
<span class="layui-badge layui-bg-green">
{if empty($val['status'])}待支付{/if}
{if $val['status'] =='1'}已付款{/if}
{if $val['status'] =='2'}已退款{/if}
{if $val['status'] =='3'}已超时{/if}
{if $val['status'] =='4'}已取消{/if}
</span>
</td>
<td>
<a class="layui-btn layui-btn-normal layui-btn-xs" href="/abt/index/pay_order/?order_id={$val['order_id']}" target="_blank">详情</a>
<a href="/abt/index/order_list/?order_id={$val['order_id']}&del=1" onclick="return confirm('确定要删除吗?此操作不可逆!')" class="layui-btn layui-btn-danger layui-btn-xs">删除</a>
</td>
</tr>
{/volist}
</table>
</div>
{$list|raw}
<hr>
{include file="../application/abt/view/pc/common/footer_menu.html" /}
```
php
```
<?php
// 查询条件
if ($_G['search']=='1'){
$where_lb = [
'uid'=>$_W['mc_uid'],
'order_id' => trim($_G['order_id']),
];
}else{
$where_lb = [
'uid'=>$_W['mc_uid'],
];
}
// 查表
$list = Db::name('order')->order('create_time','desc')->where($where_lb)->paginate(12);
// 删除数据
if ($_G['del']=='1'){
$where_del = [
'order_id' => trim($_G['order_id']),
'uid'=>$_W['mc_uid'],
];
$del_jg = Db::name('order')->where($where_del)->delete();
if ($del_jg){
$this -> success('删除成功');
}else{
$this -> error('删除失败');
}
}
$seo = [
'title' => "订单列表 - {$_W['q_set']['web_site_xtname']}", //SEO标题
'keyword' => "", //SEO关键词
'description' => "", //SEO描述
];
// 模版赋值
$this->assign([
'_W' => $_W, //全局变量
'_G' => $_G, //URL地址中的参数
'SEO' => $seo, //SEO标题
'list' => $list, //URL地址中的参数
]);
$htmlmbmc = "{$_W['ismobile']}/{$_W['controller']}/{$_W['action']}"; //模版目录
```