Commit b7cb8b06 authored by hujun's avatar hujun

登录后台默认页面 banner图片 加权限验证

parent e621cce3
......@@ -40,7 +40,9 @@ class Basic extends Controller
'index/login',
'index/loginVerify',
'index/logout',
'/'
'/',
'index/banner',
'index/bannerList'
);
/**
......
......@@ -21,14 +21,18 @@
<td>[%= it[item]["hits"] %]</td>
<td>[%= it[item]["up_user"] %]</td>
<td>
<a class="btn1 btn-success editor_banner " href="#modal-add-do" data-toggle="modal"
data-id="[%= it[item]['id'] %]">
编辑
</a>
<a class="btn1 btn-danger delete_banner " href="#modal-delete" data-toggle="modal"
data-id="[%= it[item]['id'] %]">
删除
</a>
[% if(check_auth('index/addOrSave')) { %]
<a class="btn1 btn-success editor_banner " href="#modal-add-do" data-toggle="modal"
data-id="[%= it[item]['id'] %]">
编辑
</a>
[% } %]
[% if(check_auth('index/upIsShow')) { %]
<a class="btn1 btn-danger delete_banner " href="#modal-delete" data-toggle="modal"
data-id="[%= it[item]['id'] %]">
删除
</a>
[% } %]
</td>
</tr>
[% } %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment