a1300399510@qq.com 提交于 2023/04/06 -11:40:02
This commit is contained in:
parent
977f10ff7d
commit
a72a0a64b3
@ -3,10 +3,11 @@
|
|||||||
<!-- 弹窗-讨论-单行 -->
|
<!-- 弹窗-讨论-单行 -->
|
||||||
<div class="pop-box flexflex flexcolumn" v-if="popState == 'discussionSingle'"
|
<div class="pop-box flexflex flexcolumn" v-if="popState == 'discussionSingle'"
|
||||||
@click="openDiscussionSingleState ? handlePopCancel() : ''">
|
@click="openDiscussionSingleState ? handlePopCancel() : ''">
|
||||||
<div class="discussion-box pop-box-box flexflex flexcolumn" style="border-radius: .4rem .4rem 0 0;" @click.stop="">
|
<div class="discussion-box pop-box-box flexflex flexcolumn" style="border-radius: .4rem .4rem 0 0;"
|
||||||
|
@click.stop="">
|
||||||
<div class="discussion-header flexacenter" v-if="twoCommentData">
|
<div class="discussion-header flexacenter" v-if="twoCommentData">
|
||||||
<img class="discussion-avatar" :src="twoCommentData.avatar" />
|
<img class="discussion-avatar" :src="twoCommentData && twoCommentData.avatar" />
|
||||||
<div class="discussion-text one-line">{{ twoCommentData.content }}</div>
|
<div class="discussion-text one-line">{{ twoCommentData && twoCommentData.content }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="discussion-single-box flexflex flex1">
|
<div class="discussion-single-box flexflex flex1">
|
||||||
<div class="discussion-single-content flexacenter flex1">
|
<div class="discussion-single-content flexacenter flex1">
|
||||||
@ -67,13 +68,15 @@ export default {
|
|||||||
|
|
||||||
// 提交回复
|
// 提交回复
|
||||||
postComment(commentContent) {
|
postComment(commentContent) {
|
||||||
console.log("dffgkgfk", commentContent);
|
this.$parent.postComment(commentContent)
|
||||||
},
|
},
|
||||||
|
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
handlePopCancel() {
|
handlePopCancel() {
|
||||||
|
console.log(this.$parent.popState, "this.$parent.popState");
|
||||||
this.$parent.twoCommentData = null
|
this.$parent.twoCommentData = null
|
||||||
this.$parent.popState = ""
|
this.$parent.popState = ""
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 清空
|
// 清空
|
||||||
|
@ -258,10 +258,10 @@ export default {
|
|||||||
name: 'detailIndex',
|
name: 'detailIndex',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
twoCommentData: {
|
twoCommentData: null,
|
||||||
avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle",
|
// avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle",
|
||||||
content: "评论回复",
|
// content: "评论回复",
|
||||||
},
|
// },
|
||||||
popState: "",
|
popState: "",
|
||||||
coinConfig: {
|
coinConfig: {
|
||||||
strategy: {
|
strategy: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user