合并代码

This commit is contained in:
monanxiao 2023-03-22 09:55:28 +08:00
parent 3a97605c1c
commit 22a9379d54
2 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ class Community extends BaseController
$total = Db::connect('shop')->name('community_address')
->where($where)
->count();
if ($total!=0){
$list = Db::connect('shop')->name('community_address')
->where($where)

View File

@ -28,10 +28,10 @@
<script type="text/html" id="barDemo">
<div class="layui-btn-group">
{if {:session('gougu_admin')['group_access']==1}
<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
{/if}
<a class="layui-btn layui-btn-normal layui-btn-xs {{# if(d.status != '待审核'){ }}{{# } else { }}layui-hide{{# } }}" lay-event="read">查看</a>
<a class="layui-btn layui-btn-xs {{# if(d.status == '待审核'){ }}{{# } else { }}layui-hide{{# } }}" lay-event="edit">审核</a>
</div>