Authored by 王水玲

评论添加回复展示

... ... @@ -107,7 +107,8 @@ function getCommentList(uid, isComment, page, limit) {
url: helpers.image(cm.url, 100, 100),
sourceUrl: helpers.image(cm.url, 400, 400),
height: cm.height,
weight: cm.weight
weight: cm.weight,
reply: cm.reply
};
});
... ...
... ... @@ -136,6 +136,9 @@
</div>
</div>
{{/if}}
{{# reply}}
<p class="comment-reply">客服回复:{{.}}</p>
{{/ reply}}
<p class="color-gray">评论时间:{{createTime}}</p>
</div>
{{/each}}
... ... @@ -171,6 +174,9 @@
<i class="view view-only">查看</i>
</div>
</div>
{{# reply}}
<p class="comment-reply">客服回复:{{.}}</p>
{{/ reply}}
<p class="color-gray">评论时间:\{{createTime}}</p>
</div>
</script>
... ...
... ... @@ -160,7 +160,8 @@ const indexComment = (req, res, next) => {
star: _.get(item, 'satisfied', 1),
comfort: _.get(item, 'size', 'MIDDLE'),
height: _.get(item, 'height', ''),
weight: _.get(item, 'weight', '')
weight: _.get(item, 'weight', ''),
reply: _.get(item, 'reply')
};
})
});
... ...
... ... @@ -38,6 +38,9 @@
</div>
</div>
{{/if}}
{{# reply}}
<p class="comment-reply">客服回复:{{.}}</p>
{{/ reply}}
<span class="comment-date">{{date}}</span>
</div>
</li>
... ...
... ... @@ -336,6 +336,11 @@
margin-right: 50px;
}
}
.comment-reply {
background: #f2f2f2;
padding: 10px;
}
}
.comment-star {
... ...
... ... @@ -1629,6 +1629,14 @@
vertical-align: top;
}
}
.comment-reply {
width: 710px;
padding: 10px;
background: #f2f2f2;
line-height: 20px;
margin-bottom: 10px;
}
}
dl {
... ...