comment.hbs
8.26 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<div class="comment-me-page me-page yoho-page clearfix">
{{> path}}
{{> navigation}}
<div class="me-main">
<div class="comment block">
<h2 class="title"></h2>
{{#with comment}}
<div class="me-comment">
<div class="main-tip">
{{#if isComment}}
您己对<span id="goodsNum">{{goodsNum}}</span>件商品发表评论,感谢您优质的评论和分享!
<select class="right" onchange="javascript:location.href='/home/comment?isComment='+this.value;">
<option value="N">未发表评论的商品</option>
<option value="Y" selected="">己发表评论的商品</option>
</select>
{{else}}
您还有<span id="goodsNum">{{goodsNum}}</span>件商品未发表评论,欢迎您发表原创、与商品质量相关、对其他用户有参考价值的商品评论。
<select class="right" onchange="javascript:location.href='/home/comment?isComment='+this.value;">
<option value="N" selected="">未发表评论的商品</option>
<option value="Y">己发表评论的商品</option>
</select>
{{/if}}
</div>
<p class="comment-table-header table-header clearfix">
<span class="info">商品信息</span>
<span class="type">操作</span>
</p>
{{#if orders.length }}
<table class="comment-table">
{{#each orders}}
<!--<tr>
<th colspan="4">
订单编号:{{orderNum}}
<span class="right">下单时间:{{orderTime}}</span>
</th>
</tr>-->
{{#each goods}}
<tr>
<td width="115">
<a href="{{href}}"><img src="{{thumb}}"></a>
</td>
<td>
<a href="{{href}}" class="name">{{name}}</a>
<div>下单时间{{../orderTime}}</div>
</td>
<td style="width:50%" class="center">
<button class="remark-btn">评价商品</button>
</td>
</tr>
<tr>
<td colspan="3" class="comment-add">
<div class="row">
<label class="fl-left"><i class="color-warn require-sign">*</i> 商品满意度:</label>
<span class="comment-star">
<span class="star-5"></span>
<span class="star-4"></span>
<span class="star-3"></span>
<span class="star-2"></span>
<span class="star-1"></span>
</span>
</div>
<div class="row">
<span class="col">
<label><i class="color-warn require-sign">*</i> 尺码符合度:</label>
<a href="#" class="btn btn-outline">偏小</a>
<a href="#" class="btn btn-outline">合身</a>
<a href="#" class="btn btn-outline">偏大</a>
</span>
<span class="col">
<label>身高:</label>
<a href="#" class="btn btn-outline">175</a> 厘米
</span>
<span class="col">
<label>体重:</label>
<a href="#" class="btn btn-outline">80</a> 公斤
</span>
</div>
<div class="row textarea">
<textarea></textarea>
</div>
<div class="row img-list">
<div class="img-wrap">
<img src="" />
</div>
<span>最多上传1张图片</span>
</div>
<div class="btns">
<a href="#" class="btn btn-submit">提交评价</a>
<span>带*为必填选项</span>
</div>
</td>
</tr>
{{#each comments}}
<tr>
<td>购买评价:</td>
<td colspan="2">
<div class="comment-info">
<div class="comment-star">
</div>
<span>合适</span>
<span>身高:175厘米</span>
<span>体重:70公斤</span>
</div>
<p>阿斯顿发送到发送到发生大幅度发生大水电费</p>
<div class="img">
<img src="{{img}}" alt="">
</div>
<p>评论时间:2016-10-10 21:21:21</p>
</td>
</tr>
{{/each}}
{{/each}}
{{/each}}
</table>
{{#with ../pager}}
{{> common/foot-pager footPager=this}}
{{/with}}
{{else}}
{{> empty this}}
{{/if}}
</div>
{{/with}}
</div>
{{> help-us}}
</div>
<div id="comment-dialog-widget" class="comment-dialog-widget hide">
<div class="dialog-titlebar">
<span class="dialog-close-btn"></span>
</div>
<div class="dialog-content">
<dl>
<dd>商品评论:</dd>
<dd>
<textarea id="comment-content"></textarea>
</dd>
</dl>
</div>
<div class="dialog-buttons">
<button class="dialog-close-btn">取消</button>
<button class="dialog-save-btn">提交评论</button>
</div>
</div>
</div>