<ul class="comment-list" id="commentList">
    <%
        _.each(cmtList,function(cmt,index){
    %>
        <li class="comment-list__item one-level-comment">
            <div class="self-comment comment-wrap">
                <section class="user-info__wrap">
                    <a href="<%= cmt.bbs_uid=='0'?'#':Util.getUserLink(cmt.bbs_uid)%>" class="user-info">
                                    <img src="<%= cmt.user_img_min||'http://att.bbs.duowan.com/avatar/noavatar_small.jpg' %>" onerror="this.onerror=null;this.src='http://att.bbs.duowan.com/avatar/noavatar_small.jpg'" class="user-icon"/>
                                    <label class="user-name"><%= cmt.udb_name %></label>
                                </a>
                    <i class="comment-time"><%= Util.getFriendlyDateStr(Util.parseDate(cmt.created*1)) %></i>
                </section>
                <section class="comment-content">
                    <%= cmt.contents %>
                </section>
                <section class="op-btn one-level">
                    <button type="button" class="btn-agree <%= localStorage.getItem(cmt.comment_id)?'have-agree':'' %>" data-cid="<%= cmt.comment_id %>"><%= cmt.count_vote||cmt.vote%></button>
                    <button type="button" class="btn-reply" data-cid="<%= cmt.comment_id %>">回复</button>
                </section>
            </div>
            <ul class="comment-list other-comment">
                <% cmt.reply&&_.each(cmt.reply,function(otherCmt,index) { %>
                    <li class="comment-list__item">
                        <div class="comment-wrap">
                            <section class="user-info__wrap">
                                <a href="<%= otherCmt.bbs_uid==" 0 "?'#':Util.getUserLink(otherCmt.bbs_uid)%>" class="user-info">
                                    <img src="<%= otherCmt.user_img_min||'http://att.bbs.duowan.com/avatar/noavatar_small.jpg' %>" onerror="this.onerror=null;this.src='http://att.bbs.duowan.com/avatar/noavatar_small.jpg'" class="user-icon"/>
                                    <label class="user-name"><%= otherCmt.udb_name %></label>
                                </a>
                                <i class="comment-time"><%= Util.getFriendlyDateStr(Util.parseDate(otherCmt.created*1)) %></i>
                            </section>
                            <section class="comment-content">
                                <%= otherCmt.contents %>
                            </section>
                            <section class="op-btn two-level">
                                <button type="button" class="btn-reply" data-cid="<%= cmt.comment_id %>">回复</button>
                            </section>
                        </div>
                    </li>
                    <% }) %>
            </ul>
            <% if(parseInt(cmt.comment_reply_total)>3){ %>
                <a class="show-more-comments" data-morereply="<%= [cmt.comment_id,cmt.lastR.created,cmt.lastR.comment_id].join('|') %>">还有<%= parseInt(cmt.comment_reply_total) - 3 %>条回复,点击查看</a>
                <% } %>
        </li>

        <%
        })
    %>
</ul>
<%
    if(typeof minLength =='undefined')  {
      var  minLength = 10
    }
   
    if(cmtList.length==minLength){
%>
    <a href="<%= typeof morehref == 'undefined'?'#':morehref %>" class="common-look-more" data-num="10">
            <%= typeof isCommentPge =='undefined'?'查看所有评论':'展开更多评论' %>        
</a>
<%}else if(cmtList.length==0){%>
        <p class="no-comment">暂无评论，抢个沙发吧~</p>
<%}%>