分类不分页

This commit is contained in:
Anyon 2020-12-16 15:25:35 +08:00
parent 6d0762eb08
commit ea6d5d20a8
2 changed files with 6 additions and 5 deletions

View File

@ -45,7 +45,7 @@ class ShopGoodsCate extends Controller
{
$this->title = "商品分类管理(最大{$this->cateLevel}级)";
$query = $this->_query($this->table)->like('name')->dateBetween('create_at');
$query->equal('status')->where(['deleted' => 0])->order('sort desc,id desc')->page();
$query->equal('status')->where(['deleted' => 0])->order('sort desc,id desc')->page(false);
}
/**

View File

@ -12,9 +12,7 @@
{block name="content"}
<div class="think-box-shadow table-block">
{empty name='list'}
<blockquote class="notdata">没有记录哦!</blockquote>
{else}
{notempty name='list'}
<table class="layui-table" lay-skin="line">
<thead>
<tr>
@ -71,6 +69,9 @@
{/foreach}
</tbody>
</table>
{/empty}
{$pagehtml|raw|default=''}
{else}
<span class="notdata">没有记录哦</span>
{/notempty}
</div>
{/block}