修复评论@用户跳转
This commit is contained in:
parent
fae4426d97
commit
b79b427640
@ -85,8 +85,8 @@
|
||||
<script type="text/html" id="table-forum-list">
|
||||
{if condition="checkRuleButton('admin/forum/listdel')"}
|
||||
<!--a class="layui-btn layui-btn-disabled layui-btn-xs" lay-event="edit" ><i class="layui-icon layui-icon-edit"></i>编辑</a-->
|
||||
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
|
||||
{else /}<a class="layui-btn layui-btn-danger layui-btn-xs layui-btn-disabled"><i class="layui-icon layui-icon-delete"></i>删除</a>{/if}
|
||||
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i></a>
|
||||
{else /}<a class="layui-btn layui-btn-danger layui-btn-xs layui-btn-disabled"><i class="layui-icon layui-icon-delete"></i></a>{/if}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -20,15 +20,15 @@ layui.define(['table', 'form'], function(exports){
|
||||
,cols: [[
|
||||
{type: 'checkbox'}
|
||||
,{field: 'id', width: 60, title: 'ID', sort: true}
|
||||
,{field: 'poster', title: '贴主',width: 80}
|
||||
,{field: 'poster', title: '贴主',width: 100}
|
||||
,{field: 'avatar', title: '头像', width: 80, templet: '#imgTpl'}
|
||||
,{field: 'content', title: '标题', width: 200,templet: '#title'}
|
||||
,{field: 'content', title: '标题', mWidth: 200,templet: '#title'}
|
||||
,{field: 'posttime', title: '时间',width: 120, sort: true}
|
||||
,{field: 'top', title: '置顶', templet: '#buttonTpl', width: 80, align: 'center'}
|
||||
,{field: 'hot', title: '精贴', templet: '#buttonHot', width: 80, align: 'center'}
|
||||
,{field: 'reply', title: '评论状态', templet: '#buttonReply', width: 80, align: 'center'}
|
||||
,{field: 'check', title: '审帖', templet: '#buttonCheck', width: 100, align: 'center'}
|
||||
,{title: '操作', width: 85, align: 'center', toolbar: '#table-forum-list'}
|
||||
,{title: '操作', width: 60, align: 'center', toolbar: '#table-forum-list'}
|
||||
]]
|
||||
,page: true
|
||||
,limit: 15
|
||||
|
@ -962,7 +962,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util', 'imgcom'],
|
||||
}
|
||||
text = text.replace(/^@|([\s\S]+?)/g, '');
|
||||
othis.attr({
|
||||
href: '/index/jump/index?name='+ text
|
||||
href: jumpUrl + '?name=' + text
|
||||
,target: '_blank'
|
||||
});
|
||||
});
|
||||
|
@ -20,5 +20,6 @@ var messageNums = "{:url('message/nums')}",
|
||||
searchUrl = "{:url('index/search')}",
|
||||
langUrl = "{:url('index/language')}",
|
||||
replyNum = "{:lang('replies')}";
|
||||
var jumpUrl = "{:url('/jump/index/')}";
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user