From 57f5c0fe72470f830fcc5ab030c5c45b5be8422a Mon Sep 17 00:00:00 2001 From: koogua Date: Thu, 20 May 2021 19:30:32 +0800 Subject: [PATCH] =?UTF-8?q?v1.3.5=E9=98=B6=E6=AE=B5=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Home/Views/question/show.volt | 2 +- public/static/home/js/common.js | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) 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'], + }); }); });