comment320.html 1.22 KB
<script id="comment-tpl" type="x-tmpl-mustache">
    <ul class="comments-list">
        \{{# comment}}
        <li class="clearfix">
            <div class="userimg">
                <img src="\{{headpic}}" alt="">
                <i class="\{{partnerType}}"></i>
            </div>
            <div class="userinfo">
                <h6>\{{nick}}</h6>
                <p class="comment-text">\{{content}}</p>
                \{{#if isSelf}}
                <a class="delete-comment" href="javascript:;" pid="\{{id}}"></a>
                \{{/if}}
            </div>
        </li>
        \{{/ comment}}
    </ul>
    \{{# more}}
    <div class="view-more"><a href="javascript:;">View&nbsp;<span>\{{moreNum}}</span>&nbsp;more</a></div>
    \{{/ more}}
    \{{# page}}
    <div class="comment-pager-content pager-content-default" style="display:none">
        <div class="channel-index-pager">
            \{{# switchNext}}
            <a class="pager-item switch-next" href="\{{link}}">下一页</a>
            \{{/ switchNext}}
            \{{# switchPrev}}
            <a class="pager-item switch-prev" href="\{{link}}">上一页</a>
            \{{/ switchPrev}}
        </div>
    </div>
    \{{/ page}}
</script>