|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-06-24 11:43:04
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-27 18:06:10
|
|
|
|
|
* @LastEditTime: 2022-06-28 21:34:32
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -58,14 +58,16 @@
|
|
|
|
|
<div class="answer--name"><b>{{commentDetail.merchantComment.userName}}:</b><span>{{commentDetail.merchantComment.createTime}}</span></div>
|
|
|
|
|
<p class="answer--ctx">{{commentDetail.merchantComment.commentContent}}</p>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="answer--item" v-for="(item, idx) in answerCommentList" :key="idx">
|
|
|
|
|
<div class="answer--name">
|
|
|
|
|
<b>{{item.userName}} {{item.parentId !== commentDetail.id ? ` 回复 ${item.parentUserName}` : ''}}:</b>
|
|
|
|
|
<span>{{item.createTime}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="answer--ctx">{{item.commentContent}}</p>
|
|
|
|
|
<span class="answer--answer" @click="handleAnswer(item)">回复</span>
|
|
|
|
|
</li>
|
|
|
|
|
<template v-if="answerVisible">
|
|
|
|
|
<li class="answer--item" v-for="(item, idx) in answerCommentList" :key="idx">
|
|
|
|
|
<div class="answer--name">
|
|
|
|
|
<b>{{item.userName}} {{item.parentId !== commentDetail.id ? ` 回复 ${item.parentUserName}` : ''}}:</b>
|
|
|
|
|
<span>{{item.createTime}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="answer--ctx">{{item.commentContent}}</p>
|
|
|
|
|
<span class="answer--answer" @click="handleAnswer(item)">回复</span>
|
|
|
|
|
</li>
|
|
|
|
|
</template>
|
|
|
|
|
</ul>
|
|
|
|
|
<div v-if="answerVisible" class="answer--form">
|
|
|
|
|
<input v-model="answerContent" class="answer--input"
|
|
|
|
|