Authored by 王水玲

评论添加回复展示

@@ -107,7 +107,8 @@ function getCommentList(uid, isComment, page, limit) { @@ -107,7 +107,8 @@ function getCommentList(uid, isComment, page, limit) {
107 url: helpers.image(cm.url, 100, 100), 107 url: helpers.image(cm.url, 100, 100),
108 sourceUrl: helpers.image(cm.url, 400, 400), 108 sourceUrl: helpers.image(cm.url, 400, 400),
109 height: cm.height, 109 height: cm.height,
110 - weight: cm.weight 110 + weight: cm.weight,
  111 + reply: cm.reply
111 }; 112 };
112 }); 113 });
113 114
@@ -136,6 +136,9 @@ @@ -136,6 +136,9 @@
136 </div> 136 </div>
137 </div> 137 </div>
138 {{/if}} 138 {{/if}}
  139 + {{# reply}}
  140 + <p class="comment-reply">客服回复:{{.}}</p>
  141 + {{/ reply}}
139 <p class="color-gray">评论时间:{{createTime}}</p> 142 <p class="color-gray">评论时间:{{createTime}}</p>
140 </div> 143 </div>
141 {{/each}} 144 {{/each}}
@@ -171,6 +174,9 @@ @@ -171,6 +174,9 @@
171 <i class="view view-only">查看</i> 174 <i class="view view-only">查看</i>
172 </div> 175 </div>
173 </div> 176 </div>
  177 + {{# reply}}
  178 + <p class="comment-reply">客服回复:{{.}}</p>
  179 + {{/ reply}}
174 <p class="color-gray">评论时间:\{{createTime}}</p> 180 <p class="color-gray">评论时间:\{{createTime}}</p>
175 </div> 181 </div>
176 </script> 182 </script>
@@ -160,7 +160,8 @@ const indexComment = (req, res, next) => { @@ -160,7 +160,8 @@ const indexComment = (req, res, next) => {
160 star: _.get(item, 'satisfied', 1), 160 star: _.get(item, 'satisfied', 1),
161 comfort: _.get(item, 'size', 'MIDDLE'), 161 comfort: _.get(item, 'size', 'MIDDLE'),
162 height: _.get(item, 'height', ''), 162 height: _.get(item, 'height', ''),
163 - weight: _.get(item, 'weight', '') 163 + weight: _.get(item, 'weight', ''),
  164 + reply: _.get(item, 'reply')
164 }; 165 };
165 }) 166 })
166 }); 167 });
@@ -38,6 +38,9 @@ @@ -38,6 +38,9 @@
38 </div> 38 </div>
39 </div> 39 </div>
40 {{/if}} 40 {{/if}}
  41 + {{# reply}}
  42 + <p class="comment-reply">客服回复:{{.}}</p>
  43 + {{/ reply}}
41 <span class="comment-date">{{date}}</span> 44 <span class="comment-date">{{date}}</span>
42 </div> 45 </div>
43 </li> 46 </li>
@@ -336,6 +336,11 @@ @@ -336,6 +336,11 @@
336 margin-right: 50px; 336 margin-right: 50px;
337 } 337 }
338 } 338 }
  339 +
  340 + .comment-reply {
  341 + background: #f2f2f2;
  342 + padding: 10px;
  343 + }
339 } 344 }
340 345
341 .comment-star { 346 .comment-star {
@@ -1629,6 +1629,14 @@ @@ -1629,6 +1629,14 @@
1629 vertical-align: top; 1629 vertical-align: top;
1630 } 1630 }
1631 } 1631 }
  1632 +
  1633 + .comment-reply {
  1634 + width: 710px;
  1635 + padding: 10px;
  1636 + background: #f2f2f2;
  1637 + line-height: 20px;
  1638 + margin-bottom: 10px;
  1639 + }
1632 } 1640 }
1633 1641
1634 dl { 1642 dl {