66 lines
2.7 KiB
HTML
66 lines
2.7 KiB
HTML
{extend name="public/base" /}
|
|
|
|
{block name="footer"}
|
|
{/block}
|
|
{block name="body"}
|
|
<div class="comment-form-back"></div>
|
|
<div class="comment-form">
|
|
<p>评论</p>
|
|
<form method="post" action="__SELF__">
|
|
<textarea name="content" placeholder="请输入评论"></textarea>
|
|
<button type="button" class="ajax-post">提交评论</button>
|
|
</form>
|
|
</div>
|
|
<!-- 经验其他 -->
|
|
<ul class="experience-footer">
|
|
<li><i class="fa fa-eye"></i> {$info.click}</li>
|
|
<li onclick="comment()"><i class="fa fa-commenting"></i> {$info->comment()->count()}</li>
|
|
<li class="ajax-get {notempty name="$info.count"}active{/notempty}" url="{:url('experience/tags')}?id={$info.id}" ><i class="fa fa-thumbs-up "></i> {$info.tags}</li>
|
|
</ul>
|
|
<!-- End 经验其他 -->
|
|
<!-- 发表内容 -->
|
|
<div class="experience-txt ce-margin-b-sm">
|
|
<div class="experience-list-user ce-padding-sm">
|
|
<div class="ce-user-portrait experience-user-portrait ce-radius"> <span class="ce-radius" style="background-image:url({$info.user.avatar})"></span> </div>
|
|
<p class="ce-nowrap">{$info.user.nickname}</p>
|
|
<p>{$info.create_time}</p>
|
|
</div>
|
|
<p class="ce-padding-sm">{$info.content}</p>
|
|
</div>
|
|
<!-- End 发表内容 -->
|
|
<!-- 回复列表 -->
|
|
<div class="reply-content">
|
|
<p class="reply-content-title">全部评论<span onclick="comment()">评论</span></p>
|
|
<!-- 如无评论隐藏此段内容 -->
|
|
<ul class="reply-list">
|
|
{volist name="info.comment" id="vo"}
|
|
<li class="ce-padding-sm">
|
|
<div class="reply-content-user ce-margin-b-sm">
|
|
<div class="ce-user-portrait reply-content-portrait ce-radius"><span class="ce-radius" style="background-image:url({$vo.user.avatar})"></span></div>
|
|
<p class="ce-nowrap">{$vo.user.nickname}</p> <span class="reply-list-layer">{$i}楼</span>
|
|
</div>
|
|
<p class="ce-margin-b-sm">{$vo.content}</p>
|
|
<p class="text-gray reply-list-tool">{$vo.create_time}<span class="ajax-get {notempty name="vo.Count"}active{/notempty}" url="{:url('experience/tags')}?id={$vo.id}"><i class="fa fa-thumbs-up"></i> {$vo.tags}</span></p>
|
|
</li>
|
|
{/volist}
|
|
</ul>
|
|
<!-- End 如无评论隐藏此段内容 -->
|
|
<!-- 无内容提示 -->
|
|
{empty name="info.comment"}
|
|
<p class="ce-padding text-gray ce-text-c">暂无评论</p>
|
|
{/empty}
|
|
</div>
|
|
<!-- End 回复列表 -->
|
|
{/block}
|
|
|
|
{block name="script"}
|
|
<script type="text/javascript">
|
|
function comment() {
|
|
$('.comment-form,.comment-form-back').css('display', 'block');
|
|
}
|
|
$('.comment-form-back').tap(function(){
|
|
$('.comment-form,.comment-form-back').css('display', 'none');
|
|
})
|
|
</script>
|
|
{/block}
|