comment-item.hbs 1.9 KB
{{#each comments}}
    <li>
        <div class="user-info clearfix">
            <span class="name">{{userName}}</span>
                <span class="comment-star pull-left">
                    <span class="star-{{star}} active"></span>
                </span>
        </div>
        <dl class="pull-right">
            {{#if color}}<dd>颜色:{{color}}</dd>{{/if}}
            {{#if size}}<dd>尺码:{{size}}</dd>{{/if}}
            {{#if height}}<dd>身高:{{height}} 厘米</dd>{{/if}}
            {{#if weight}}<dd>体重:{{weight}} 公斤</dd>{{/if}}
            <dd>尺码符合度:
                {{#if_cond comfort "===" "MIDDLE"}}合适{{/if_cond}}
                {{#if_cond comfort "===" "SMALL"}}偏小{{/if_cond}}
                {{#if_cond comfort "===" "BIG"}}偏大{{/if_cond}}
            </dd>
        </dl>
        <!-- <div style="clear:both"></div> -->
        <div class="comment-detail">
            <p class="comment">{{comment}}</p>

            {{#if url}}
                <div class="img-preview">
                    <a class="img-thumb" href="javascript:void(0);">
                        <img src="{{image2 url w=70 h=100 mode=1}}" />
                    </a>
                    <div class="img-detail">
                        <dl class="toolbar">
                            <dd data-role="preview-close"><i class="iconfont">&#xe6cf;</i>收起</dd>
                            <dd data-role="preview-left"><i class="iconfont">&#xe6d1;</i>向左旋转</dd>
                            <dd data-role="preview-right"><i class="iconfont">&#xe6d2;</i>向右旋转</dd>
                        </dl>
                        <div class="img-wrap">
                            <img src="{{image2 url w=345 h=345}}" />
                        </div>
                    </div>
                </div>
            {{/if}}
            <span class="comment-date">{{date}}</span>
        </div>
    </li>

{{/each}}