comment-item.hbs
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{{#each comments}}
<li>
<div class="user-info clearfix judge-head">
<!-- <img class="user-avatar" src="{{avatar}}"> -->
<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="{{image url 70 100 1}}" />
</a>
<div class="img-detail">
<dl class="toolbar">
<dd data-role="preview-close"><i class="iconfont"></i>收起</dd>
<dd data-role="preview-left"><i class="iconfont"></i>向左旋转</dd>
<dd data-role="preview-right"><i class="iconfont"></i>向右旋转</dd>
</dl>
<div class="img-wrap">
<img src="{{image url 345 345}}" />
</div>
</div>
</div>
{{/if}}
<span>{{date}}</span>
</div>
</li>
{{/each}}