提供了一个网站内容反馈举报的功能。
直接将以下的 Blade 代码插入到视图地方即可,点击后会弹出举报对话框。
Blade
<a class="tw-text-gray-400" href="javascript:;" data-dialog-request="{{\Module\ContentReport\Util\ContentReportUtil::submitPageUrl('业务标识','业务ID','业务标题')}}"> 举报 </a>
比如要给博客的文章举报功能,可以这样写:
<a class="tw-text-gray-400" href="javascript:;" data-dialog-request="{{\Module\ContentReport\Util\ContentReportUtil::submitPageUrl('blog','1','文章标题')}}"> 举报 </a>
如要给当前页面增加举报功能,可以这样写:
<a class="tw-text-gray-400" href="javascript:;" data-dialog-request="{{\Module\ContentReport\Util\ContentReportUtil::submitPageUrlCustom()}}"> <i class="iconfont icon-shield-check"></i> 举报 </a>
QQ扫一扫联系
点击联系
2374926113
微信扫一扫联系
.