修复评论@用户跳转
This commit is contained in:
parent
fae4426d97
commit
b79b427640
@ -85,8 +85,8 @@
|
|||||||
<script type="text/html" id="table-forum-list">
|
<script type="text/html" id="table-forum-list">
|
||||||
{if condition="checkRuleButton('admin/forum/listdel')"}
|
{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-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>
|
<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}
|
{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>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,15 +20,15 @@ layui.define(['table', 'form'], function(exports){
|
|||||||
,cols: [[
|
,cols: [[
|
||||||
{type: 'checkbox'}
|
{type: 'checkbox'}
|
||||||
,{field: 'id', width: 60, title: 'ID', sort: true}
|
,{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: '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: 'posttime', title: '时间',width: 120, sort: true}
|
||||||
,{field: 'top', title: '置顶', templet: '#buttonTpl', width: 80, align: 'center'}
|
,{field: 'top', title: '置顶', templet: '#buttonTpl', width: 80, align: 'center'}
|
||||||
,{field: 'hot', title: '精贴', templet: '#buttonHot', width: 80, align: 'center'}
|
,{field: 'hot', title: '精贴', templet: '#buttonHot', width: 80, align: 'center'}
|
||||||
,{field: 'reply', title: '评论状态', templet: '#buttonReply', width: 80, align: 'center'}
|
,{field: 'reply', title: '评论状态', templet: '#buttonReply', width: 80, align: 'center'}
|
||||||
,{field: 'check', title: '审帖', templet: '#buttonCheck', width: 100, 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
|
,page: true
|
||||||
,limit: 15
|
,limit: 15
|
||||||
|
@ -962,7 +962,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util', 'imgcom'],
|
|||||||
}
|
}
|
||||||
text = text.replace(/^@|([\s\S]+?)/g, '');
|
text = text.replace(/^@|([\s\S]+?)/g, '');
|
||||||
othis.attr({
|
othis.attr({
|
||||||
href: '/index/jump/index?name='+ text
|
href: jumpUrl + '?name=' + text
|
||||||
,target: '_blank'
|
,target: '_blank'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="fly-footer html5plus-hide">
|
<div class="fly-footer html5plus-hide">
|
||||||
<p> Copyright © {:date('Y')} {$sysInfo.copyright|raw}v{:config('taoler.version')}</p>
|
<p> Copyright © {:date('Y')}{$sysInfo.copyright|raw}v{:config('taoler.version')}</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="#" target="_blank">站务反馈</a>
|
<a href="#" target="_blank">站务反馈</a>
|
||||||
<a href="#" target="_blank">获取本站源码</a>
|
<a href="#" target="_blank">获取本站源码</a>
|
||||||
@ -20,5 +20,6 @@ var messageNums = "{:url('message/nums')}",
|
|||||||
searchUrl = "{:url('index/search')}",
|
searchUrl = "{:url('index/search')}",
|
||||||
langUrl = "{:url('index/language')}",
|
langUrl = "{:url('index/language')}",
|
||||||
replyNum = "{:lang('replies')}";
|
replyNum = "{:lang('replies')}";
|
||||||
|
var jumpUrl = "{:url('/jump/index/')}";
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user