comment.html 1.77 KB
<script id="comment-tpl" type="x-tmpl-mustache">
    <ul class="comments-list">
        \{{# comment}}
        <li class="clearfix">
            <div class="userimg">
                <img src="\{{userimg}}" alt="">
                <i class="\{{partnerType}}"></i>
            </div>
            <div class="userinfo">
                <h6>\{{username}}</h6> 
                <p class="comment-text">\{{content}}</p>
                \{{# isSelf}}
                <a class="delete-comment" href="javascript:;" pid="{{id}}"></a>
                \{{/ isSelf}} 
            </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">\{{> html}}</div>
    </div>
    \{{/ page}}
    <div class="comment-textarea">
        <div class="anonymous-info clearfix">
            <input class="name-input" type="text" placeholder="Name">
            <input class="email-input" type="text" placeholder="E-mail">
        </div>
        <textarea placeholder="说点什么..." cid="4288"></textarea>
        <div class="login-status clearfix">
            <div class="userimg">
                <img src="http://res.yohoboys.comboysweb/assets/images/detail/user-img.png" alt="">
                <i></i>
            </div>
            <div class="userinfo" style="display: none;"> 
                <span></span>
                <a class="exit-btn" href="javascript:;">退出</a>
            </div>
            <div class="publish">
                <a class="publish-btn" href="javascript:;">Publish</a>
            </div>
        </div>
    </div>
</script>