37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
HTML
{{if !empty($data)}}
|
|
{{foreach $data as $v}}
|
|
<article class="am-comment">
|
|
<img src="{{$v.user.avatar}}" class="am-comment-avatar" alt="{{$v.user.user_name_view}}" />
|
|
<div class="am-comment-main">
|
|
<header class="am-comment-hd">
|
|
<div class="am-comment-meta">
|
|
<span class="am-comment-author">{{$v.user.user_name_view}}</span>
|
|
<span>{{:MyLang('goods.comments_first_name')}}</span>
|
|
<time>{{$v.add_time_date}}</time>
|
|
</div>
|
|
</header>
|
|
<div class="am-comment-bd">
|
|
<p>{{$v.content}}</p>
|
|
{{if !empty($v['images'])}}
|
|
<ul data-am-widget="figure" class="am-cf comment-images am-figure am-inline-block" data-am-figure="{pureview: 'true'}">
|
|
{{foreach $v.images as $img}}
|
|
<li class="am-fl">
|
|
<img src="{{$img}}" class="am-img-thumbnail am-radius" />
|
|
</li>
|
|
{{/foreach}}
|
|
</ul>
|
|
{{/if}}
|
|
{{if !empty($v['msg'])}}
|
|
<p class="comment-spec">{{$v.msg}}</p>
|
|
{{/if}}
|
|
{{if $v['is_reply'] eq 1 and !empty($v['reply'])}}
|
|
<div class="comment-reply">
|
|
<span class="comment-reply-title">{{:MyLang('goods.admin_reply_name')}}</span>
|
|
<span class="comment-reply-desc">{{$v.reply}}</span>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</article>
|
|
{{/foreach}}
|
|
{{/if}} |