|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<div>
|
|
<div>
|
|
|
- <div style="display: flex; margin-left: 10px; margin-right: 10px">
|
|
|
|
|
|
|
+ <div style="display: flex; margin-left: 10px; margin-right: 10px" class="mt-2">
|
|
|
<div style="width: 40px; height: 40px; background: #1e90ff; border-radius: 50%; margin-right: 10px">
|
|
<div style="width: 40px; height: 40px; background: #1e90ff; border-radius: 50%; margin-right: 10px">
|
|
|
<a-image
|
|
<a-image
|
|
|
width="100%"
|
|
width="100%"
|
|
@@ -35,11 +35,15 @@
|
|
|
<div style="margin-left: 15px">
|
|
<div style="margin-left: 15px">
|
|
|
<MessageOutlined style="cursor: pointer" @click="handerMessage" />
|
|
<MessageOutlined style="cursor: pointer" @click="handerMessage" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- 添加删除图标 -->
|
|
|
|
|
+ <div style="margin-left: 15px">
|
|
|
|
|
+ <DeleteOutlined style="cursor: pointer" @click="handerDel" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-show="props.item.child.length > 0" v-for="(item, index) in props.item.child" :key="index">
|
|
|
|
|
|
|
+ <div v-show="props.item.child.length > 0" v-for="(item, index) in props.item.child" :key="index" class="mt-2">
|
|
|
<div style="display: flex; margin-left: 50px; margin-right: 0px">
|
|
<div style="display: flex; margin-left: 50px; margin-right: 0px">
|
|
|
<div style="width: 40px; height: 40px; background: #1e90ff; border-radius: 50%; margin-right: 10px">
|
|
<div style="width: 40px; height: 40px; background: #1e90ff; border-radius: 50%; margin-right: 10px">
|
|
|
<a-image
|
|
<a-image
|
|
@@ -75,6 +79,9 @@
|
|
|
<LikeOutlined v-if="item.giveNumSelf == 0" style="cursor: pointer" @click="handerfollwChild(item)" />
|
|
<LikeOutlined v-if="item.giveNumSelf == 0" style="cursor: pointer" @click="handerfollwChild(item)" />
|
|
|
<span style="margin-left: 5px">{{ item.giveNum }}</span>
|
|
<span style="margin-left: 5px">{{ item.giveNum }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div style="margin-left: 15px">
|
|
|
|
|
+ <DeleteOutlined style="cursor: pointer" @click="handerDel" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -105,6 +112,7 @@
|
|
|
queryList,
|
|
queryList,
|
|
|
pageComment,
|
|
pageComment,
|
|
|
addComment,
|
|
addComment,
|
|
|
|
|
+ deleteComment,
|
|
|
giveComment,
|
|
giveComment,
|
|
|
giveCancelComment
|
|
giveCancelComment
|
|
|
} from '@/api/portal'
|
|
} from '@/api/portal'
|
|
@@ -188,6 +196,11 @@
|
|
|
tallTag.value = false
|
|
tallTag.value = false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ const handerDel = () => {
|
|
|
|
|
+ deleteComment([{ id: props.item.id }]).then(() => {
|
|
|
|
|
+ EventBus.emit('onGetPageComment')
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
// getList()
|
|
// getList()
|
|
|
|
|
|