|
@@ -15,21 +15,19 @@
|
|
</div>
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<!-- /.card-header -->
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
- <a class="btn btn-app" href="{:url('system/edit',['id'=>1])}">
|
|
|
|
|
|
+ <!-- <a class="btn btn-app" href="{:url('system/edit',['id'=>1])}">
|
|
<div><i class="Hui-iconfont"></i></div>
|
|
<div><i class="Hui-iconfont"></i></div>
|
|
<span>系统设置</span>
|
|
<span>系统设置</span>
|
|
|
|
+ </a> -->
|
|
|
|
+ {foreach $indexButton as $button}
|
|
|
|
+ <a class="btn btn-app" href="/sys/{$button.url}">
|
|
|
|
+ <div><i class="Hui-iconfont">{$button.icon|raw}</i></div>
|
|
|
|
+ <span>{$button.name}</span>
|
|
</a>
|
|
</a>
|
|
- <a class="btn btn-app" href="{:url('advertise/index')}">
|
|
|
|
- <div><i class="Hui-iconfont"></i></div>
|
|
|
|
- <span>轮播图管理</span>
|
|
|
|
- </a>
|
|
|
|
- <a class="btn btn-app" href="{:url('article/index')}">
|
|
|
|
- <div><i class="Hui-iconfont"></i></div>
|
|
|
|
- <span>管理文章</span>
|
|
|
|
- </a>
|
|
|
|
- <a class="btn btn-app" href="{:url('category/index')}">
|
|
|
|
- <div><i class="Hui-iconfont"></i></div>
|
|
|
|
- <span>管理栏目</span>
|
|
|
|
|
|
+ {/foreach}
|
|
|
|
+ <a class="btn btn-app" onclick="addButton();">
|
|
|
|
+ <div><i class="Hui-iconfont"></i></div>
|
|
|
|
+ <span>管理快捷方式</span>
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
@@ -199,6 +197,61 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</article>
|
|
|
|
+<style>
|
|
|
|
+ #dialog {
|
|
|
|
+ position: fixed;
|
|
|
|
+ height: 360px;
|
|
|
|
+ width: 600px;
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
+ z-index: 5;
|
|
|
|
+ left: 30%;
|
|
|
|
+ border: 1px solid gray;
|
|
|
|
+ top: 25%;
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #cancel {
|
|
|
|
+ border: 0px none #FFECEC;
|
|
|
|
+ background: #999999;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ padding: 5px 15px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 8px;
|
|
|
|
+ right: 100px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #cancel:hover {
|
|
|
|
+ background: #AAAAAA;
|
|
|
|
+ }
|
|
|
|
+</style>
|
|
|
|
+<div id="dialog">
|
|
|
|
+ <div style="position: absolute;height: 40px;width: 100%;background: #FFFFFF;border-bottom: 1px solid gray;">
|
|
|
|
+ <span style="position: absolute;left: 10px;top: 10px;color: gray;" class="dialog-tilte">选择快捷方式</span>
|
|
|
|
+ <img src="/static/images/X.png"
|
|
|
|
+ style="height: 25px;width: 25px;position: absolute;right: 10px;top: 10px;cursor: pointer;"
|
|
|
|
+ onclick="f_cancel()" />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="tab" style="margin-left:30px;margin-top:40px;">
|
|
|
|
+ <form id="form-save" method="post" action="">
|
|
|
|
+ <div class="row cl mt-20">
|
|
|
|
+ <div class="skin-minimal">
|
|
|
|
+ {foreach $menuList as $value}
|
|
|
|
+ <div class="check-box" style="width: 200px;">
|
|
|
|
+ <input type="checkbox" id="checkbox-1" name="checkbox[]" value="{$value.id}" {if
|
|
|
|
+ $value.index_button==1}checked{/if}>
|
|
|
|
+ <label for="checkbox-1">{$value.name}</label>
|
|
|
|
+ </div>
|
|
|
|
+ {/foreach}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="row cl" style="margin-top:10px;">
|
|
|
|
+ <div class="formControls col-sm-6 col-xs-8 col-sm-offset-4 col-xs-offset-4">
|
|
|
|
+ <button type="button" class="btn btn-success radius" onclick="saveIndexButton()">保存</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
|
|
<!--请在下方写此页面业务相关的脚本-->
|
|
<!--请在下方写此页面业务相关的脚本-->
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
@@ -253,5 +306,37 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 新增快捷方式
|
|
|
|
+ */
|
|
|
|
+ function addButton() {
|
|
|
|
+ $('#dialog').show();
|
|
|
|
+ }
|
|
|
|
+ function f_cancel() {
|
|
|
|
+ $('#dialog').hide();
|
|
|
|
+ }
|
|
|
|
+ function saveIndexButton() {
|
|
|
|
+ var data = $("#form-save").serializeArray();
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: 'POST',
|
|
|
|
+ url: '{:url("/sys/index/saveIndexButton")}',
|
|
|
|
+ data: data,
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ // console.log(res);
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
+ layer.msg(res.msg, { icon: 1, time: 500 }, function () {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ layer.msg(res.msg, {
|
|
|
|
+ icon: 5,
|
|
|
|
+ time: 1000
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
<!--请在上方写此页面业务相关的脚本-->
|
|
<!--请在上方写此页面业务相关的脚本-->
|