mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 22:39:16 +08:00
[更新]微信关键字管理
This commit is contained in:
parent
15ff595378
commit
b7cdd380dc
@ -7,7 +7,7 @@
|
|||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block name='content'}
|
{block name='content'}
|
||||||
<form onsubmit="return false;" data-auto="" method="POST">
|
<form onsubmit="return false;" data-auto="true" action="__SELF__" method="POST">
|
||||||
<input type="hidden" value="resort" name="action"/>
|
<input type="hidden" value="resort" name="action"/>
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
@ -22,9 +22,9 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{foreach $list as $key=>$vo}
|
{foreach $list as $key=>$vo}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$vo.keys}</td>
|
<td class="text-center">{$vo.keys}</td>
|
||||||
<td>{$vo.type}</td>
|
<td class="text-center">{$vo.type}</td>
|
||||||
<td>
|
<td class="text-center">
|
||||||
{if $vo.type eq '音乐'}
|
{if $vo.type eq '音乐'}
|
||||||
<a class="btn btn-link" data-tips-text="预览" data-tips-placement="bottom"
|
<a class="btn btn-link" data-tips-text="预览" data-tips-placement="bottom"
|
||||||
data-phone-view='{:url("@wechat/review")}&type=music&title={$vo.music_title}&desc={$vo.music_desc}'>
|
data-phone-view='{:url("@wechat/review")}&type=music&title={$vo.music_title}&desc={$vo.music_desc}'>
|
||||||
@ -44,16 +44,15 @@
|
|||||||
{$vo.content}
|
{$vo.content}
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
<td>{$vo.create_at}</td>
|
<td class="text-center">{$vo.create_at}</td>
|
||||||
<td>
|
<td class='text-center nowrap'>
|
||||||
{if auth("$classuri/edit")}
|
{if auth("$classuri/edit")}
|
||||||
<span class="text-explode">|</span>
|
<span class="text-explode">|</span>
|
||||||
<a href='{"@wechat/keys/edit"|app_url}&id={$vo.id}'>编辑</a>
|
<a data-open='{:url("@wechat/keys/edit")}?id={$vo.id}'>编辑</a>
|
||||||
{/if}
|
{/if}
|
||||||
{if auth("$classuri/del")}
|
{if auth("$classuri/del")}
|
||||||
<span class="text-explode">|</span>
|
<span class="text-explode">|</span>
|
||||||
<a data-delete='{$vo.id}' data-action='{"@wechat/keys/del"|app_url}'
|
<a data-delete='{$vo.id}' data-action='{:url("@wechat/keys/del")}' href="javascript:void(0)">删除</a>
|
||||||
href="javascript:void(0)">删除</a>
|
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -67,29 +66,7 @@
|
|||||||
|
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script>
|
<script>
|
||||||
/* 瀑布流控制 */
|
|
||||||
var $layer = $('.news-container').cascade();
|
|
||||||
/* 事件处理 */
|
|
||||||
$('.news-container').on('mouseenter', '.news-box', function () {
|
|
||||||
$(this).addClass('active');
|
|
||||||
}).on('mouseleave', '.news-box', function () {
|
|
||||||
$(this).removeClass('active');
|
|
||||||
});
|
|
||||||
/* 删除图文 */
|
|
||||||
$('.news-container').on('click', '[data-news-del]', function () {
|
|
||||||
var $news_box = $(this).parents('.news-box');
|
|
||||||
var $news_del = $(this);
|
|
||||||
$.msg.confirm('确定要删除吗?', function () {
|
|
||||||
$.form.load('{"wechat/news/del"|app_url}', {id: $news_del.attr('data-news-del')}, 'POST', function (ret) {
|
|
||||||
if (ret.code === 'SUCCESS') {
|
|
||||||
$.msg.success(ret.info);
|
|
||||||
$news_box.remove(), $layer.data('cascade').layout();
|
|
||||||
} else {
|
|
||||||
$.msg.error(ret.info);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
$(function () {
|
$(function () {
|
||||||
/**
|
/**
|
||||||
* 默认类型事件
|
* 默认类型事件
|
||||||
|
Loading…
x
Reference in New Issue
Block a user