mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]微信关键字管理
This commit is contained in:
parent
fa37327ca0
commit
5b7d3c65c0
@ -12,7 +12,7 @@
|
||||
{empty name='menu.sub'}
|
||||
<ul class="sidebar-trans">
|
||||
<li class="nav-item">
|
||||
<a data-menu-node='m-{$pmenu.id}-{$menu.id}' data-load="{$menu.url}"
|
||||
<a data-menu-node='m-{$pmenu.id}-{$menu.id}' data-open="{$menu.url}"
|
||||
class="sidebar-trans">
|
||||
<div class="nav-icon sidebar-trans">
|
||||
<span class="{$menu.icon|default='fa fa-link'} transition-min"></span>
|
||||
@ -31,7 +31,7 @@
|
||||
<ul class="sidebar-trans" style="display:none" data-menu-node='m-{$pmenu.id}-{$menu.id}'>
|
||||
{volist name='menu.sub' id='submenu'}
|
||||
<li class="nav-item">
|
||||
<a data-menu-node='m-{$pmenu.id}-{$submenu.id}' data-load="{$submenu.url}"
|
||||
<a data-menu-node='m-{$pmenu.id}-{$submenu.id}' data-open="{$submenu.url}"
|
||||
class="sidebar-trans">
|
||||
<div class="nav-icon sidebar-trans">
|
||||
<span class="{$submenu.icon|default='fa fa-link'} transition-min"></span>
|
||||
|
@ -8,7 +8,7 @@
|
||||
</div>
|
||||
{volist name='menus' id='pmenu'}
|
||||
{empty name='pmenu.sub'}
|
||||
<a data-menu-node='m-{$pmenu.id}' data-load="{$pmenu.url}"
|
||||
<a data-menu-node='m-{$pmenu.id}' data-open="{$pmenu.url}"
|
||||
class="topbar-home-link topbar-btn topbar-left">
|
||||
<span>{notempty name='$pmenu.icon'}<i class="{$pmenu.icon}"></i>{/notempty} {$pmenu.title}</span>
|
||||
</a>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{block name="button"}
|
||||
<div class="nowrap pull-right" style="margin-top:10px">
|
||||
<button data-load="{:url('add')}" class='layui-btn layui-btn-small'>添加规则</button>
|
||||
<button data-open="{:url('add')}" class='layui-btn layui-btn-small'>添加规则</button>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
<td class='text-center nowrap'>
|
||||
{if auth("$classuri/edit")}
|
||||
<span class="text-explode">|</span>
|
||||
<a data-load='{:url("@wechat/keys/edit")}?id={$vo.id}'>编辑</a>
|
||||
<a data-open='{:url("@wechat/keys/edit")}?id={$vo.id}'>编辑</a>
|
||||
{/if}
|
||||
{if auth("$classuri/del")}
|
||||
<span class="text-explode">|</span>
|
||||
|
@ -17,8 +17,7 @@ define(['jquery', 'admin.plugs'], function () {
|
||||
|
||||
/*! 注册 data-load 事件行为 */
|
||||
this.$body.on('click', '[data-load]', function () {
|
||||
var url = $(this).attr('data-load');
|
||||
var tips = $(this).attr('data-tips');
|
||||
var url = $(this).attr('data-load'), tips = $(this).attr('data-tips');
|
||||
|
||||
function _goLoad() {
|
||||
$.form.load(url, {}, 'GET', null, true, tips);
|
||||
@ -45,6 +44,11 @@ define(['jquery', 'admin.plugs'], function () {
|
||||
return $.form.modal($(this).attr('data-modal'), 'open_type=modal', $(this).attr('data-title') || '编辑');
|
||||
});
|
||||
|
||||
/*! 注册 data-open 事件行为 */
|
||||
this.$body.on('click', '[data-open]', function () {
|
||||
$.form.href($(this).attr('data-open'), this);
|
||||
});
|
||||
|
||||
/*! 注册 data-reload 事件行为 */
|
||||
this.$body.on('click', '[data-reload]', function () {
|
||||
$.form.reload();
|
||||
|
Loading…
x
Reference in New Issue
Block a user