作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

幻灯片管理微调

... ... @@ -276,7 +276,7 @@ class PublicController extends RestBaseController
* @return content:轮播图内容
*/
public function getAdList() {
$result = Db::name('slideItem')->field('id,image,content')->select();
$result = Db::name('slideItem')->where(['state'=>1])->field('id,image,content')->select();
if ($result === false) {
$this->error(['code'=>'40000','msg'=>'获取失败']);
}
... ...
... ... @@ -4,7 +4,7 @@
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:url('slide/index')}">幻灯片列表</a></li>
<li><a href="{:url('slide/add')}">添加幻灯片</a></li>
<!--<li><a href="{:url('slide/add')}">添加幻灯片</a></li>-->
</ul>
<table class="table table-hover table-bordered margin-top-20">
<thead>
... ... @@ -29,7 +29,7 @@
<td>
<a href="{:url('slide/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
<a href="javascript:parent.openIframeLayer('{:url('slideItem/index',array('slide_id'=>$vo['id']))}','管理 {$vo.name} 页面',{});">管理页面</a>
<a href="{:url('slide/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
<!--<a href="{:url('slide/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>-->
</td>
</tr>
</foreach>
... ...