diff --git a/app/Http/Home/Views/question/show.volt b/app/Http/Home/Views/question/show.volt index 031eefd3..146d7a01 100644 --- a/app/Http/Home/Views/question/show.volt +++ b/app/Http/Home/Views/question/show.volt @@ -47,7 +47,7 @@ {{ question.answer_count }} 回答
- 举报 + 举报 {% if auth_user.id == question.owner.id %} 编辑 删除 diff --git a/public/static/home/js/common.js b/public/static/home/js/common.js index b7406718..98c57ac1 100644 --- a/public/static/home/js/common.js +++ b/public/static/home/js/common.js @@ -161,12 +161,14 @@ layui.use(['jquery', 'form', 'element', 'layer', 'helper'], function () { $('body').on('click', '.kg-report', function () { var url = $(this).data('url'); - layer.open({ - type: 2, - title: '内容举报', - shadeClose: true, - content: [url, 'no'], - area: ['640px', '480px'], + helper.checkLogin(function () { + layer.open({ + type: 2, + title: '内容举报', + shadeClose: true, + content: [url, 'no'], + area: ['640px', '480px'], + }); }); });