Skip to content

Commit

Permalink
Merge pull request #68 from Qsnh/dev
Browse files Browse the repository at this point in the history
优化:未登录用户评论框设为禁止状态
  • Loading branch information
Qsnh committed Sep 23, 2019
2 parents 040a7dc + 508f13b commit 8142d87
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/views/components/frontend/comment.blade.php
Expand Up @@ -8,10 +8,12 @@
<p class="no-padding no-margin">4.支持emoji表情</p>
</div>
<div class="publisher publisher-multi bg-white b-1 mb-30">
<textarea class="publisher-input auto-expand" name="comment_content" id="comment-content" rows="2" placeholder="写点吧"></textarea>
@auth
<p class="text-right"><button type="button" id="submit-comment" class="btn btn-sm btn-bold btn-primary">评论</button></p>
@endauth
@if(\Illuminate\Support\Facades\Auth::check())
<textarea class="publisher-input auto-expand" name="comment_content" id="comment-content" rows="2" placeholder="写点吧"></textarea>
<p class="text-right"><button type="button" id="submit-comment" class="btn btn-sm btn-bold btn-primary">评论</button></p>
@else
<textarea class="publisher-input auto-expand" name="comment_content" id="comment-content" rows="1" placeholder="请先登录" disabled="disabled"></textarea>
@endif
</div>
</div>
<div class="col-sm-12 comment-box">
Expand Down

0 comments on commit 8142d87

Please sign in to comment.