review_item320.html 1.92 KB
<script id="review-list-template" type="text/x-handlebars-template">
\{{#each reviewList}}
<div class="review-item">
    <div class="item-top clearfix">
        <div class="user-avatar">
            <img src="\{{titlePic}}" alt="">
            <i class="\{{partnerType}}"></i>
        </div>
        <div class="user-info clearfix">
            <span class="name">\{{nick}}</span>
            <p class="clearfix">
                <span>\{{buyAgain}}&nbsp;/&nbsp;</span>
                <span>\{{age}}&nbsp;/&nbsp;</span>
                <span>\{{skin}}&nbsp;/&nbsp;</span>
                <span>\{{update_time}}</span>
            </p>
        </div>
    </div>
    <div class="review-content">
        <h2>\{{title}}</h2>
        <div class="min-content">
            <div class="text-wrap">
                <p>\{{summary}}<a class="more-content" href="javascript:;">展开</a></p> 
            </div>
            \{{#if pics}}
            <div class="min-img clearfix">
                \{{#each pics}}
                <img src="\{{.}}" alt="">
                \{{/each}}
            </div>
            \{{/if}}
        </div>
        <div class="normal-content">
            \{{{content}}}
        </div>
        
    </div>
    <div class="score-wrap clearfix">
        \{{#if sub}}
            <div class="detail-score">
                <h4>细项评分:</h4>
                <ul class="clearfix">
                    \{{#each sub}}
                    <li>\{{aName}} \{{t_score}}</li>
                    \{{/each}}
                    <li class="more-score-btn">
                        <span class="show-icon iconfont">更多&#xe604;</span>
                        <span class="put-away iconfont">收起&#xe603;</span>
                    </li>
                </ul>
            </div>
        \{{/if}}
        <div class="final-score">
            <h2>总评星</h2>
            {{> common/final_score}}
        </div>
    </div>
</div>
\{{/each}}
</script>